Advertisement
antoniorigo4

script roblox

Feb 4th, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 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. Decal2 = Instance.new("Decal")
  22. Script3 = Instance.new("Script")
  23. Tool0.Name = "SLAM"
  24. Tool0.Parent = mas
  25. Tool0.TextureId = "rbxassetid://2816459863"
  26. Tool0.Grip = CFrame.new(0, 0, 0.285591125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  27. Tool0.GripPos = Vector3.new(0, 0, 0.285591125)
  28. Part1.Name = "Handle"
  29. Part1.Parent = Tool0
  30. Part1.CFrame = CFrame.new(8.739995, 3.03500557, 43.375, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  31. Part1.Position = Vector3.new(8.739995, 3.03500557, 43.375)
  32. Part1.Size = Vector3.new(1.8199991, 2.06999946, 0.150000051)
  33. Part1.BottomSurface = Enum.SurfaceType.Smooth
  34. Part1.TopSurface = Enum.SurfaceType.Smooth
  35. Decal2.Parent = Part1
  36. Decal2.Texture = "rbxassetid://2816459863"
  37. Script3.Parent = Tool0
  38. table.insert(cors,sandbox(Script3,function()
  39. script.Parent.Parent = owner.Backpack
  40. wait ()
  41. script:Destroy()
  42. end))
  43. for i,v in pairs(mas:GetChildren()) do
  44. v.Parent = workspace
  45. pcall(function() v:MakeJoints() end)
  46. end
  47. mas:Destroy()
  48. for i,v in pairs(cors) do
  49. spawn(function()
  50. pcall(v)
  51. end)
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement