SHARE
TWEET

h

a guest May 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
  2. local mouse = player:GetMouse()
  3. local remote = Instance.new("RemoteEvent")
  4. remote.Parent = script.Parent
  5. remote.Name = "Remote"
  6. local script2 = Instance.new("Script")
  7. script2.Parent = script.Parent
  8. mouse.Button1Down:Connect(function()
  9.     remote:FireServer(mouse.Hit)
  10. end)
  11. 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)"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top