Advertisement
Gomlsauresrex

Illuminati UPD

Mar 23rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. --The Script is Created by Cohenfan31
  2. --Modified By Gomlsauresrex
  3.  
  4. local function weld(a, b, attachpos)
  5. local w=Instance.new("Weld", a)
  6. w.Name="Weld"
  7. w.Part0=a
  8. w.Part1=b
  9. w.C0=attachpos
  10. end
  11.  
  12. local player=game.Players.LocalPlayer
  13. local p=player.Character or player.CharacterAdded:wait()
  14. local train = Instance.new("Part",p.Torso)
  15. train.Anchored = true
  16. train.CanCollide = false
  17. train.Size = Vector3.new(3,2,6)
  18. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  19. weld(p.Torso, train, CFrame.new(0,0,0)*CFrame.Angles(0, math.rad(180), 0))
  20. train.Anchored = false
  21. local TrainMesh = Instance.new("SpecialMesh",train)
  22. TrainMesh.MeshType = Enum.MeshType.FileMesh
  23. TrainMesh.Scale = Vector3.new(0.020,0.020,0.015)
  24. TrainMesh.MeshId = "rbxassetid://438530126"
  25. TrainMesh.TextureId = "rbxassetid://438530126"
  26.  
  27.  
  28. local weld2 = Instance.new("Weld",p.Torso or p.HumanoidRootPart)
  29. weld2.Part0 = p.Torso or p.HumanoidRootPart
  30. local Smoke = Instance.new("Part",p.Torso or p.HumanoidRootPart)
  31. Smoke.Anchored = true
  32. Smoke.CanCollide = false
  33. Smoke.Size = Vector3.new(1,1,1)
  34. Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  35. weld2.Part1 = Smoke
  36. weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0)
  37. Smoke.Anchored = false
  38. Smoke.Transparency = 1;
  39.  
  40. local Particle = Instance.new("ParticleEmitter",Smoke)
  41. Particle.Rate = 50;
  42. Particle.Speed = NumberRange.new(30,60);
  43. Particle.VelocitySpread = 4;
  44. Particle.Texture = "rbxassetid://261113277"
  45.  
  46. local Light = Instance.new("SpotLight",train)
  47. Light.Angle = 45;
  48. Light.Brightness = 100;
  49. Light.Face = Enum.NormalId.Back;
  50. Light.Range = 30;
  51.  
  52. p.Humanoid.WalkSpeed = 60;
  53.  
  54.  
  55. for i,v in pairs(p:GetChildren()) do
  56. if v:IsA("Part") then
  57. v.Transparency = 1;
  58. elseif v:IsA("Hat") then
  59. v:Destroy()
  60. elseif v:IsA("Model") then
  61. v:Destroy()
  62. end
  63. end
  64.  
  65. local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
  66. train.Touched:connect(function(p)
  67. if p.Parent then
  68. if p.Parent:IsA("Model") then
  69. if game.Players:FindFirstChild(p.Parent.Name) then
  70. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  71. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  72. local Whistle = SFX(324445205)
  73. --Whistle:Play()
  74. end
  75. end
  76. end
  77. end
  78. end)
  79.  
  80. --[[local Music = SFX(185492305)
  81. Music.Looped = true;
  82. wait(1)
  83. Music:Play();--]]
  84. -- ~CL 2016
  85.  
  86. train.Touched:Connect(function(hit)
  87. if hit.Name~="BasePlate" and hit.Name~="Terrain" then
  88. local e=Instance.new("Explosion", train)
  89. local sound=SFX(324445205)
  90. sound:Play()
  91. e.Position=train.Position
  92. end
  93. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement