Advertisement
Godofadmin1337

tesssttt

Sep 30th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. RemoteEvent2 = Instance.new("RemoteEvent")
  22. LocalScript3 = Instance.new("LocalScript")
  23. Script4 = Instance.new("Script")
  24. Tool0.Parent = mas
  25. Part1.Name = "Handle"
  26. Part1.Parent = Tool0
  27. Part1.Rotation = Vector3.new(-1.00999999, -24.3099995, -0.409999996)
  28. Part1.CanCollide = false
  29. Part1.Size = Vector3.new(4, 1, 2)
  30. Part1.CFrame = CFrame.new(64.7745438, 6.61639404, -20.1945419, 0.911313713, 0.00659958506, -0.411659986, -1.54633962e-14, 0.999871492, 0.0160295814, 0.411712885, -0.0146079771, 0.911196589)
  31. Part1.Position = Vector3.new(64.7745438, 6.61639404, -20.1945419)
  32. Part1.Orientation = Vector3.new(-0.919999957, -24.3099995, 0)
  33. RemoteEvent2.Parent = Tool0
  34. LocalScript3.Parent = Tool0
  35. table.insert(cors,sandbox(LocalScript3,function()
  36. local play = game.Players.LocalPlayer
  37. local mouse = play:GetMouse()
  38.  
  39. mouse.Button1Down:connect(function()
  40. local point = mouse.Hit.p
  41. local expl = Instance.new("Explosion")
  42. expl.Position = point
  43. expl.Parent = game.Workspace
  44.  
  45. script.Parent.RemoteEvent:FireServer(point)
  46. end)
  47. end))
  48. Script4.Parent = Tool0
  49. table.insert(cors,sandbox(Script4,function()
  50.  
  51. script.Parent.RemoteEvent.OnServerEvent:connect(function(player,p)
  52. local expl = Instance.new("Explosion")
  53. expl.Position = p
  54. expl.Parent = game.Workspace
  55.  
  56. end)
  57. end))
  58. for i,v in pairs(mas:GetChildren()) do
  59. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  60. pcall(function() v:MakeJoints() end)
  61. end
  62. mas:Destroy()
  63. for i,v in pairs(cors) do
  64. spawn(function()
  65. pcall(v)
  66. end)
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement