Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Get_Components_Of_Mouse(player)
- local pchar = player.Character
- if pchar then
- local Remote = pchar:FindFirstChild('RE_Mouse')or
- Instance.new("RemoteEvent",pchar)
- Remote.Name = 'RE_Mouse'
- Remote.Parent = NLS(
- [[
- local lp,runs,re =
- game:GetService'Players'.LocalPlayer,game:GetService'RunService',
- script:WaitForChild('RE_Mouse')
- local mouse = lp:GetMouse()
- ]]
- ,pchar)
- return Remote
- else
- error('Best to actually put your character In the game.')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement