Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local uis = game:GetService("UserInputService")
- local mouse = game.Players.LocalPlayer:GetMouse()
- local re = game.ReplicatedStorage:WaitForChild("IceMagicActivated")
- uis.InputBegan:Connect(function(inp, processed)
- if processed then return end
- if inp.KeyCode == Enum.KeyCode.G then
- re:FireServer(mouse.Hit)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement