Godofadmin1337

kill

Oct 3rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 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. Script2 = Instance.new("Script")
  22. Tool0.Parent = mas
  23. Part1.Name = "Handle"
  24. Part1.Parent = Tool0
  25. Part1.BrickColor = BrickColor.new("Teal")
  26. Part1.Reflectance = 0.20000000298023
  27. Part1.Rotation = Vector3.new(0, -90, 0)
  28. Part1.Size = Vector3.new(4, 1.20000005, 4)
  29. Part1.CFrame = CFrame.new(-6.22000122, 5.15922642, -11.9199982, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  30. Part1.TopSurface = Enum.SurfaceType.Smooth
  31. Part1.Color = Color3.new(0.0705882, 0.933333, 0.831373)
  32. Part1.Position = Vector3.new(-6.22000122, 5.15922642, -11.9199982)
  33. Part1.Orientation = Vector3.new(0, -90, 0)
  34. Part1.Color = Color3.new(0.0705882, 0.933333, 0.831373)
  35. Script2.Parent = Part1
  36. table.insert(cors,sandbox(Script2,function()
  37. function teleportPlayer(pos, Head)
  38.  
  39.  
  40. local char = Head
  41.  
  42. sound = Instance.new("Sound")
  43. sound.SoundId = "rbxasset://sounds\\HalloweenLightning.wav"
  44. sound.Parent = char
  45. sound.PlayOnRemove = true
  46. sound:remove()
  47.  
  48. char.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
  49.  
  50.  
  51. sound = Instance.new("Sound")
  52. sound.SoundId = "rbxasset://sounds\\HalloweenThunder.wav"
  53. sound.Parent = char
  54. sound.PlayOnRemove = true
  55. sound:remove()
  56.  
  57. end
  58.  
  59. function onTouched(part)
  60. if part.Parent ~= nil then
  61. local h = part.Parent:findFirstChild("Humanoid")
  62. if h~=nil then
  63.  
  64. teleportPlayer(Vector3.new(-6.22, -744.571, 134.742), part.Parent.Head)
  65.  
  66. end
  67. end
  68. end
  69.  
  70. script.Parent.Touched:connect(onTouched)
  71.  
  72. end))
  73. for i,v in pairs(mas:GetChildren()) do
  74. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  75. pcall(function() v:MakeJoints() end)
  76. end
  77. mas:Destroy()
  78. for i,v in pairs(cors) do
  79. spawn(function()
  80. pcall(v)
  81. end)
  82. end
Add Comment
Please, Sign In to add comment