Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do i just do this idk how to describe it please help?

Ok so i made it so a player can look up/down when holding a tool and the tool will follow i am trying to make it so the player can see if another player is looking up/ down i am storing a value in the tool named ypos in players local script it check if any player has a tool out and if they do, then it moves their tool to where it would be the problem with that is that the value i talked about, ypos it is set using the cameras cframe y so i can only get it in a local script but if i set it in a local script, the value won't appear for anybody else and i can't do it in a server script because i can't use the camera in that, i can use a remote event but it will cause delay so how do i fix this?

(also do u now see why i couldn't come up with a title?)

1 answer

✓ Accepted answer

bruh, this is hella simple

remote:FireServer(camera.CFrame.Position.Y)

remote.OnServerEvent:Connect(function(pos)
	value.Value = pos
end)

1 comment

0

actually i assumed that remote events would have slight delay but i guess i was wrong! i tried it out and it worked well!

This discussion is preserved as it was. New answers, comments, and votes are closed.