Can you make a tutorial so the camera is following head only when player has a certain amount of health pls ??? it would help me for my revive system, thank you.
For anybody that needs the code: local rate = .01 local clonesCount = 12 local lastUpdate = 0 local cursorClones = {} local runService = game:GetService("RunService") local players = game:GetService("Players") local userInputService = game:GetService("UserInputService") local guiService = game:GetService("GuiService") local tweenService = game:GetService("TweenService") local localPlayer = players.LocalPlayer local mouse = localPlayer:GetMouse() userInputService.MouseIconEnabled = false local gui = script.Parent local cursor = gui:WaitForChild("Cursor") runService.PreRender:Connect(function() local now = os.clock() local guiInset = Vector2.zero if gui.IgnoreGuiInset then guiInset = guiService:GetGuiInset() end local mousePosition = UDim2.fromOffset(mouse.X + guiInset.X, mouse.Y + guiInset.Y) cursor.Position = mousePosition if now - lastUpdate >= rate then lastUpdate = now if cursorClones[clonesCount] then cursorClones[clonesCount]:Destroy() table.remove(cursorClones, clonesCount) end for _, clone in cursorClones do clone.ZIndex -= 1 clone.BackgroundTransparency -= 0.02 clone.Size -= UDim2.fromOffset(1, 1) end local newClone = cursor:Clone() newClone.ZIndex = clonesCount + 1 newClone.Parent = gui table.insert(cursorClones, 1, newClone) end end) local tweenInfo = TweenInfo.new(.05) mouse.Button1Down:Connect(function() tweenService:Create(cursor, tweenInfo, {Size = UDim2.fromOffset(15, 15)}):Play() end) mouse.Button1Up:Connect(function() tweenService:Create(cursor, tweenInfo, {Size = UDim2.fromOffset(10, 10)}):Play() end)
Can someone give me the script? I've redone it several times and it gives me the same error. If someone would give me the script I would be more then happy!
I actually had a custom camera system where I attached the cam to the players head cframe, the issue is I couldn't look on the y axis even with custom mouse input. So what I did was make it so when you try to look on the y-axis the players head would follow, works like a charm lol
Slight problem when i publish the game on the roblox app, when playing the game, known of the animations/basketball system works. Is this a bug or what did i do wrong? I was working perfectly fine in studio.
@@Be4at Well then you need to debug the issue, you can either ask on help channels such as devforum or RoDevs/ HiddenDevs or you can watch my workshop where i showed how to configure this system
It really depends on a case, you have to debug it, i recommend checking out what the output says. If you cant manage to figure it out yourself you can always create a post on scripting-help devforum topic.