Advertisement
lafur

Untitled

Jun 26th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. local repStorage = game:GetService("ReplicatedStorage")
  2. wait(3)
  3. local Player = game:GetService("Players").timetodie23232223
  4. local Mouse = Player:GetMouse()
  5. local UIS = game:GetService("UserInputService")
  6.  
  7. Sans = false
  8.  
  9. spawning = false
  10. LastPosition = CFrame.new(0,0,0)
  11.  
  12. --Humanoid:SetStateEnabled("Dead",false)
  13. --Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  14.  
  15. function createRemotes()
  16. script.Main:Clone().Parent = repStorage
  17. script.placeholder.Name = Player.Name
  18. script[Player.Name].Parent = repStorage
  19. script.SouljaBoy.Parent = repStorage
  20. end
  21.  
  22. if repStorage:FindFirstChild(Player.Name) == nil then
  23. createRemotes()
  24. else
  25. repStorage.Main:Destroy()
  26. repStorage[Player.Name]:Destroy()
  27. repStorage["SouljaBoy"]:Destroy()
  28. createRemotes()
  29. end
  30.  
  31. Touch = workspace.ChildAdded:Connect(function()
  32.  
  33. end)
  34.  
  35. function Respawn()
  36. spawning = true
  37. Touch:Disconnect()
  38. local NP = Instance.new("Part")
  39. NP.Size = Vector3.new(0,0,0)
  40. NP.Anchored = true
  41. NP.Transparency = 1
  42. NP.CFrame = LastPosition
  43. local NG = script.non:Clone()
  44. NG.Parent = NP
  45. NG.Adornee = NP
  46. local NS = Instance.new("Sound")
  47. NS.SoundId = "rbxassetid://2893827608"
  48. NS.Volume = 10
  49. NS.Parent = NP
  50. NP.Parent = workspace
  51. NS:Play()
  52. for i = 0,1,0.1 do
  53. wait()
  54. NG.TL1.Size = UDim2.new(i,0,i,0)
  55. NG.TL1.TextTransparency = NG.TL1.Transparency - i
  56. end
  57. repeat wait() until NS.Playing == false
  58. NP:Destroy()
  59. Character = repStorage.SouljaBoy:Clone()
  60. wait()
  61. Humanoid = Character.Humanoid
  62. Humanoid:SetStateEnabled("Dead",false)
  63. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  64. Character.Parent = workspace
  65. Player.Character = Character
  66. Character.HumanoidRootPart.CFrame = LastPosition
  67. SansSkull = Instance.new("Part", Character)
  68. SansSkull.Name = "Core"
  69. SansSkull.Shape = Enum.PartType.Ball
  70. SansSkull.CanCollide = false
  71. SansSkull.BrickColor = BrickColor.new("Really red")
  72. SansSkull.Transparency = 1
  73. SansSkull.Material = "Neon"
  74. SansSkull.Size = Vector3.new(0.1, 0.1, 0.1)
  75. SansSkull.TopSurface = Enum.SurfaceType.Smooth
  76. SansSkull.BottomSurface = Enum.SurfaceType.Smooth
  77. local Weld = Instance.new("Weld", SansSkull)
  78. Weld.Part0 = Character.Head
  79. Weld.Part1 = SansSkull
  80. Weld.C1 = CFrame.new(0, -0.2, 0.2)
  81. SansMesh = Instance.new("FileMesh",SansSkull)
  82. SansMesh.MeshId = "http://www.roblox.com/asset/?id=430073345"
  83. SansMesh.TextureId = "http://www.roblox.com/asset/?id=430073362"
  84. SansMesh.Scale = Vector3.new(0.9,0.9,0.9)
  85. Touch = Character.Torso.Touched:Connect(function(Part)
  86. if Part.Parent ~= nil then
  87. if Part.Parent:FindFirstChild("HumanoidRootPart") == nil and MAD == true and Part.Name ~= "Base" then
  88. -- Idk
  89. elseif MAD == true and Part.Name ~= "Base" then
  90. local NP = Instance.new("Part")
  91. NP.Size = Vector3.new(0,0,0)
  92. NP.Anchored = true
  93. NP.Transparency = 1
  94. NP.CFrame = Part.Parent.HumanoidRootPart.CFrame
  95. Part.Parent:ClearAllChildren()
  96. local NG = script.non:Clone()
  97. NG.Parent = NP
  98. NG.Adornee = NP
  99. local NS = Instance.new("Sound")
  100. NS.SoundId = "rbxassetid://2893827608"
  101. NS.Volume = 10
  102. NS.Parent = NP
  103. NP.Parent = workspace
  104. NS:Play()
  105. for i = 0,1,0.1 do
  106. wait()
  107. NG.TL1.Size = UDim2.new(i,0,i,0)
  108. NG.TL1.TextTransparency = NG.TL1.Transparency - i
  109. end
  110. repeat wait() until NS.Playing == false
  111. NP:Destroy()
  112. end
  113. end
  114. end)
  115. spawning = false
  116. end
  117.  
  118. Respawn()
  119.  
  120. Touch = Character.Torso.Touched:Connect(function(Part)
  121. if Part.Parent ~= nil then
  122. if Part.Parent:FindFirstChild("HumanoidRootPart") == nil and MAD == true and Part.Name ~= "Base" then
  123. -- Idk
  124. elseif MAD == true and Part.Name ~= "Base" then
  125. local NP = Instance.new("Part")
  126. NP.Size = Vector3.new(0,0,0)
  127. NP.Anchored = true
  128. NP.Transparency = 1
  129. NP.CFrame = Part.Parent.HumanoidRootPart.CFrame
  130. Part.Parent:ClearAllChildren()
  131. local NG = script.non:Clone()
  132. NG.Parent = NP
  133. NG.Adornee = NP
  134. local NS = Instance.new("Sound")
  135. NS.SoundId = "rbxassetid://2893827608"
  136. NS.Volume = 10
  137. NS.Parent = NP
  138. NP.Parent = workspace
  139. NS:Play()
  140. for i = 0,1,0.1 do
  141. wait()
  142. NG.TL1.Size = UDim2.new(i,0,i,0)
  143. NG.TL1.TextTransparency = NG.TL1.Transparency - i
  144. end
  145. repeat wait() until NS.Playing == false
  146. NP:Destroy()
  147. end
  148. end
  149. end)
  150.  
  151. function Sands()
  152. if Sans == false then
  153. Sans = true
  154. local NS = Instance.new("Sound")
  155. NS.SoundId = "rbxassetid://2772809069"
  156. NS.Name = "bruh"
  157. NS.Volume = 2
  158. NS.Parent = Character.Torso
  159. NS:Play()
  160. SansSkull.Transparency = 0
  161. Character.Head.BillboardGui.TextLabel.Text = "Soulja Sans"
  162. Character.Head.BillboardGui.TextLabel.TextColor3 = Color3.fromRGB(85,170,255)
  163. else
  164. Sans = false
  165. if Character.Torso:FindFirstChild("bruh") == nil then
  166. else
  167. Character.Torso.bruh:Destroy()
  168. end
  169. Character.Head.BillboardGui.TextLabel.Text = "Soulja Boy"
  170. Character.Head.BillboardGui.TextLabel.TextColor3 = Color3.fromRGB(0,0,0)
  171. SansSkull.Transparency = 1
  172. end
  173. end
  174.  
  175. Main = repStorage:WaitForChild("Main")
  176. Remotes = repStorage:WaitForChild(Player.Name)
  177.  
  178. MAD = false
  179.  
  180. function Shoot(Target)
  181. if Character:FindFirstChild("Gun") == nil then
  182. -- Some random quote idk
  183. else
  184. if Target ~= nil then
  185. if Target.Parent:FindFirstChild("HumanoidRootPart") == nil then
  186. if Target.Name ~= "Base" then
  187. Target:Destroy()
  188. local NS = Instance.new("Sound")
  189. NS.SoundId = "rbxassetid://132373615"
  190. NS.Volume = 2
  191. NS.Parent = Character.Gun.Handle
  192. NS:Play()
  193. Character.Gun.Flare.BillboardGui.Enabled = true
  194. wait(0.5)
  195. Character.Gun.Flare.BillboardGui.Enabled = false
  196. end
  197. else
  198. Target.Parent.HumanoidRootPart.Velocity = Vector3.new(0,1000,0)
  199. local NS = Instance.new("Sound")
  200. NS.SoundId = "rbxassetid://132373615"
  201. NS.Volume = 2
  202. NS.Parent = Character.Gun.Handle
  203. NS:Play()
  204. Character.Gun.Flare.BillboardGui.Enabled = true
  205. wait(0.5)
  206. Character.Gun.Flare.BillboardGui.Enabled = false
  207. end
  208. end
  209. end
  210. end
  211.  
  212. Main.OnServerEvent:Connect(function(plr, request, ...)
  213. if request == "shoot" then
  214. Shoot(...)
  215. end
  216. if request == "respawn" then
  217. if Character == nil then
  218. Respawn()
  219. else
  220. Character:Remove()
  221. Respawn()
  222. end
  223. end
  224. if request == "mad" then
  225. if MAD == false then
  226. MAD = true
  227. Humanoid.WalkSpeed = 50
  228. Character.Torso.ANGER.Enabled = true
  229. Character.Torso.Sound.TimePosition = 0
  230. Character.Torso.Sound:Play()
  231. else
  232. MAD = false
  233. Humanoid.WalkSpeed = 16
  234. Character.Torso.ANGER.Enabled = false
  235. Character.Torso.Sound:Stop()
  236. end
  237. end
  238. if request == "sans" then
  239. Sands()
  240. end
  241. end)
  242.  
  243. script.ScreenGui.Parent = Player.PlayerGui
  244.  
  245. while true do
  246. game:GetService("RunService").Stepped:wait()
  247. print(LastPosition)
  248. if Character == nil then
  249. else
  250. if Character:FindFirstChild("HumanoidRootPart") == nil and Character:FindFirstChildOfClass("Humanoid") == nil then
  251. elseif Character:FindFirstChildOfClass("Humanoid").Health > 0 and spawning == false then
  252. LastPosition = Character.HumanoidRootPart.CFrame
  253. end
  254. end
  255. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement