Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = script.Parent
- local player = game.Players.LocalPlayer
- local remote = tool:WaitForChild("clearEvent")
- local mouse
- tool.Equipped:Connect(function()
- mouse = player:GetMouse()
- end)
- tool.Activated:Connect(function()
- if not mouse then return end
- local target = mouse.Target
- if target then
- remote:FireServer(target)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment