Advertisement
StarzoZero

Roblox Crash Bandicoot Morph Script

Jan 1st, 2019
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.81 KB | None | 0 0
  1. -- Note, This was leaked on V3rmillion by a banned user so don't get mad at me for putting it on Pastebin
  2.  
  3. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  7. local function NewFakeEvent()
  8. local Bind = Instance.new("BindableEvent")
  9. local Fake;Fake = {Connections = {},
  10. fakeEvent=true;
  11. Connect=function(self,Func)
  12. Bind.Event:connect(Func)
  13. self.Connections[Bind] = true
  14. return setmetatable({Connected = true},{
  15. __index = function (self,Index)
  16. if Index:lower() == "disconnect" then
  17. return function() Fake.Connections[Bind] = false;self.Connected = false end
  18. end
  19. return Fake[Index]
  20. end;
  21. __tostring = function() return "Connection" end;
  22. })
  23. end}
  24. Fake.connect = Fake.Connect;return Fake;
  25. end
  26. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  27. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  28. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  29. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  30. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  31. local function TriggerEvent(self,Event,...)
  32. local Trigger = Mouse[Event]
  33. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  34. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  35. end
  36. end
  37. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  38. Event.OnServerEvent:Connect(function(FiredBy,Input)
  39. if FiredBy.Name ~= owner.Name then return end
  40. if Input.MouseEvent then
  41. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  42. else
  43. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  44. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  45. for _,Action in pairs(ContextActionService.Actions) do
  46. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  47. end
  48. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  49. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  50. end
  51. end)
  52. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  53. Event.Parent = NLS([[
  54. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  55. local Input = function(Input,gameProcessedEvent)
  56. if gameProcessedEvent then return end
  57. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58. end
  59. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  64. end
  65. end
  66. ]],owner.Character)
  67. end
  68. RealGame = game;game = setmetatable({},{
  69. __index = function (self,Index)
  70. local Sandbox = function (Thing)
  71. if Thing:IsA("Player") then
  72. local RealPlayer = Thing
  73. return setmetatable({},{
  74. __index = function (self,Index)
  75. local Type = type(RealPlayer[Index])
  76. if Type == "function" then
  77. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  78. return function (self)return InternalData["Mouse"] end
  79. end
  80. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  81. end
  82. return RealPlayer[Index]
  83. end;
  84. __tostring = function(self) return RealPlayer.Name end
  85. })
  86. end
  87. end
  88. if RealGame[Index] then
  89. local Type = type(RealGame[Index])
  90. if Type == "function" then
  91. if Index:lower() == "getservice" or Index:lower() == "service" then
  92. return function (self,Service)
  93. local FakeServices = {
  94. ["players"] = function()
  95. return setmetatable({},{
  96. __index = function (self2,Index2)
  97. local RealService = RealGame:GetService(Service)
  98. local Type2 = type(Index2)
  99. if Type2 == "function" then
  100. return function (self,...) return RealService[Index2](RealService,...)end
  101. else
  102. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  103. return RealService[Index2]
  104. end
  105. end;
  106. __tostring = function(self) return RealGame:GetService(Service).Name end
  107. })
  108. end;
  109. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  110. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  111. ["runservice"] = function()
  112. return setmetatable({},{
  113. __index = function(self2,Index2)
  114. local RealService = RealGame:GetService(Service)
  115. local Type2 = type(Index2)
  116. if Type2 == "function" then
  117. return function (self,...) return RealService[Index2](RealService,...) end
  118. else
  119. local RunServices = {
  120. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  121. ["renderstepped"] = function() return RealService["Stepped"] end
  122. }
  123. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  124. return RealService[Index2]
  125. end
  126. end
  127. })
  128. end
  129. }
  130. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  131. return RealGame:GetService(Service)
  132. end
  133. end
  134. return function (self,...) return RealGame[Index](RealGame,...) end
  135. else
  136. if game:GetService(Index) then return game:GetService(Index) end
  137. return RealGame[Index]
  138. end
  139. end
  140. return nil
  141. end
  142. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  143.  
  144. --{{Made by Strazos}}--
  145.  
  146. local p = game.Players.LocalPlayer
  147. local char = p.Character
  148. local larm = char["Left Arm"]
  149. local rarm = char["Right Arm"]
  150. local lleg = char["Left Leg"]
  151. local rleg = char["Right Leg"]
  152. local hed = char.Head
  153. local torso = char.Torso
  154. local hum = char.Humanoid
  155. local weld = Instance.new("Weld",torso)
  156. weld.Part0 = torso
  157.  
  158. larm.Transparency = 1
  159. rarm.Transparency = 1
  160. lleg.Transparency = 1
  161. rleg.Transparency = 1
  162. hed.Transparency = 1
  163. torso.Transparency = 1
  164.  
  165.  
  166. local train = Instance.new("Part",torso)
  167. train.Anchored = true
  168. train.CanCollide = false
  169. train.Size = Vector3.new(5,5,5)
  170. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  171. weld.Part1 = train
  172. weld.C1 = CFrame.new(0,-1.5,-1) * CFrame.Angles(0,math.rad(180),0)
  173. train.Anchored = false
  174. local TrainMesh = Instance.new("SpecialMesh",train)
  175. TrainMesh.MeshType = Enum.MeshType.FileMesh
  176. TrainMesh.Scale = Vector3.new(0.50, 0.50, 0.50)
  177. TrainMesh.MeshId = "rbxassetid://430155854"
  178. TrainMesh.TextureId = "rbxassetid://430155861"
  179.  
  180. hum.WalkSpeed = 130;
  181.  
  182.  
  183. for i,v in pairs(char:GetChildren()) do
  184. if v:IsA("Part") then
  185. v.Transparency = 1;
  186. elseif v:IsA("Hat") then
  187. v:Destroy()
  188. elseif v:IsA("Model") then
  189. v:Destroy()
  190. end
  191. end
  192.  
  193.  
  194. local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 999; return s; end
  195. train.Touched:connect(function(p)
  196. if p.Parent then
  197. if p.Parent:IsA("Model") then
  198. if game.Players:FindFirstChild(p.Parent.Name) then
  199. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  200. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  201. local Whistle = SFX(149638875)
  202. Whistle:Play()
  203. end
  204. end
  205. end
  206. end
  207. end)
  208.  
  209. local Music = SFX(142300098)
  210. Music.Looped = true;
  211. wait(1)
  212. Music:Play();
  213.  
  214. local particleemitter = Instance.new("ParticleEmitter", torso)
  215. particleemitter.Texture = "http://www.roblox.com/asset/?id=0"
  216. particleemitter.VelocitySpread = 180
  217. particleemitter.Lifetime = NumberRange.new(5)
  218. particleemitter.Speed = NumberRange.new(6)
  219. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5)})
  220. particleemitter.RotSpeed = NumberRange.new(-55, 55)
  221. particleemitter.Rate = 150
  222. particleemitter.Rotation = NumberRange.new(-55, 55)
  223. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.7, 0.9), NumberSequenceKeypoint.new(1, 1)})
  224. particleemitter.LightEmission = 0
  225. particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here
  226.  
  227.  
  228.  
  229. local plr = game.Players.LocalPlayer
  230. local chr = plr.Character
  231. local maus = plr:GetMouse()
  232. local PGui=plr.PlayerGui
  233. local lleg = chr["Left Leg"]
  234. local rleg = chr["Right Leg"]
  235. local larm = chr["Left Arm"]
  236. local rarm = chr["Right Arm"]
  237. local hed = chr.Head
  238. local rutprt = chr.HumanoidRootPart
  239. local torso = chr.Torso
  240. local pseudohead=hed:Clone()
  241. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  242. pseudohead.Name='PseudoHead'
  243. pseudohead.Parent=chr.Head
  244. local pseudoweld=Instance.new('Weld',torso)
  245. pseudoweld.Part0=hed
  246. pseudoweld.Name='PseudoHeadWeld'
  247. pseudoweld.Part1=pseudohead
  248. hed.Transparency=1
  249. for i,x in pairs(chr:GetChildren()) do
  250. if x:IsA'HHat' then x:destroy'' end end
  251. for i,x in pairs(chr:GetChildren()) do
  252. for a,v in pairs(x:GetChildren()) do
  253. if v:IsA'CharacterMesh' then v:destroy''
  254. end
  255. end
  256. end
  257.  
  258. -- Objects
  259.  
  260. local ScreenGui = Instance.new("ScreenGui")
  261. local TextButton = Instance.new("TextButton")
  262.  
  263. -- Properties
  264.  
  265. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  266.  
  267. TextButton.Parent = ScreenGui
  268. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  269. TextButton.Size = UDim2.new(0, 200, 0, 50)
  270. TextButton.Font = Enum.Font.SourceSans
  271. TextButton.FontSize = Enum.FontSize.Size14
  272. TextButton.Text = "wumpa!"
  273. TextButton.TextSize = 14
  274.  
  275. --[[Function/s being made!]]
  276. function PlayMusic(ID)
  277. for i, v in pairs (game.Workspace:GetChildren()) do
  278. if v:IsA("Sound") then
  279. end
  280. end
  281. local music = Instance.new("Sound")
  282. local asset = "rbxassetid://"
  283. music.SoundId = asset .. ID
  284. music.Parent = workspace
  285. music.Volume = 999
  286. music.Looped = false
  287. music:Play()
  288. end
  289. --[[Connecting functions!]]
  290. TextButton.MouseButton1Down:connect(function()
  291. PlayMusic(147685666)
  292. end)
  293.  
  294. --This is a localscript; you will need to have access to using scripts wherever you want this
  295. p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement