#I'm trying to make a part follow a characters head

7 messages · Page 1 of 1 (latest)

twilit moon
#

this is my script and my goal is to make a part that spawns follow my head this is my script

#

local rs = game:GetService("ReplicatedStorage")
local event = rs.Waterwaveevent
local event2 = event.waterwaveeventend

event.OnServerEvent:Connect(function(player, tool)

local P = tool.Parent.Head
local hitbox = rs.Part:Clone()

local char = player.Character
local origin = char:GetPivot().Position
local dir = char:GetPivot().LookVector * 1 -- how many studs away


event2.OnServerEvent:Connect(function()
    hitbox:Destroy()
end)

hitbox.Anchored = true
hitbox.CFrame = CFrame.lookAt(origin + dir, origin)
hitbox.Parent = workspace

end)

opaque pine
#

Hello

#

For other players to see or not?

#

Ohhh

twilit moon
#

yes

scarlet cove
#

thats sexist he probably identifies as a mouse