Advertisement
Baldeagle22

asas

Oct 18th, 2018
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 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. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Script2 = Instance.new("Script")
  22. Model0.Parent = mas
  23. Part1.Parent = Model0
  24. Part1.CFrame = CFrame.new(-16.0000305, 1.19999993, -7.62939453e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  25. Part1.Position = Vector3.new(-16.0000305, 1.19999993, -7.62939453e-05)
  26. Part1.Color = Color3.new(0.294118, 0.592157, 0.294118)
  27. Part1.Transparency = 1
  28. Part1.Size = Vector3.new(555.600037, 2.4000001, 512.000305)
  29. Part1.Anchored = true
  30. Part1.BrickColor = BrickColor.new("Bright green")
  31. Part1.brickColor = BrickColor.new("Bright green")
  32. Script2.Name = "SpikeScript"
  33. Script2.Parent = Part1
  34. table.insert(cors,sandbox(Script2,function()
  35. -- useless comment
  36.  
  37. function onTouched(hit)
  38. if not hit or not hit.Parent then return end
  39. local human = hit.Parent:findFirstChild("Humanoid")
  40. if human and human:IsA("Humanoid") then
  41. human:TakeDamage(100)
  42. end
  43. end
  44.  
  45. script.Parent.Touched:connect(onTouched)
  46. end))
  47. for i,v in pairs(mas:GetChildren()) do
  48. v.Parent = workspace
  49. pcall(function() v:MakeJoints() end)
  50. end
  51. mas:Destroy()
  52. for i,v in pairs(cors) do
  53. spawn(function()
  54. pcall(v)
  55. end)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement