Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
- local mouse = player:GetMouse()
- local remote = Instance.new("RemoteEvent")
- remote.Parent = script.Parent
- remote.Name = "Remote"
- local script2 = Instance.new("Script")
- script2.Parent = script.Parent
- mouse.Button1Down:Connect(function()
- remote:FireServer(mouse.Hit)
- end)
- script2.Source = "script.Parent.Remote.OnServerEvent:Connect(function(player, MouseEvent) local explosion = Instance.new('Explosion') explosion.Parent = game.Workspace explosion.Position = Vector3.new(MouseEvent.p.X,MouseEvent.p.Y,MouseEvent.p.Z) end)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement