A billboardgui is inside the player's character. Whenever the players touches a part, I want the billboardgui's imagelabel and the touched part to have the same rotation. How can this be done?
local RESET_SECONDS = 5
local isTouched = false
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("IsPlayer") then
if not isTouched then
isTouched = true
hit.Parent.HumanoidRootPart.Idle.idle.Rotation = script.Parent.Rotation
print(script.Parent.Rotation)
wait(RESET_SECONDS)
isTouched = false
end
end
end)
