So i want to be able to have a part float above the players head, but I want it to always be directly on top, but with maybe a slight animation going up and down. I am not a scripter at all but I just want to test something out. How would I do this?
--// Services
local RunService = game:GetService("RunService")
--// Constants
local part = game.Workspace.Part:Clone()
part.Parent = game.Workspace
--// Event handler
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
RunService.Stepped:Connect(function()
part.CFrame = CFrame.new(char.Head.Position + Vector3.new(0, 2, 0))
end)
end)
end)
In the future, please don’t use #help-and-feedback:scripting-support as a “How to make x” section, it is for questions about your code and how to fix it.
4 Likes