Advertisement
ManlyMemeScripter

SANIC HEDGEHOG

Mar 29th, 2018
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.67 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. game.Players.THECREATOR20029.Character.Humanoid.MaxHealth = 99999999999
  85.  
  86. game.Players.THECREATOR20029.Character.Humanoid.Health = 99999999999
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97. game.Players.THECREATOR20029.Character.Humanoid.JumpPower = 120
  98. game.Players.THECREATOR20029.Character.Humanoid.WalkSpeed = 60
  99.  
  100. local hopperbintwo = Instance.new("HopperBin")
  101. hopperbintwo.BinType = "Hammer"
  102. hopperbintwo.Parent = game.Players.THECREATOR20029.Backpack
  103.  
  104. local hopperbinthree = Instance.new("HopperBin")
  105. hopperbinthree.BinType = "Clone"
  106. hopperbinthree.Parent = game.Players.THECREATOR20029.Backpack
  107.  
  108. gui1=Instance.new("BillboardGui")
  109. gui1.Parent= game.Workspace.THECREATOR20029.Head
  110. gui1.Adornee= game.Workspace.THECREATOR20029.Head
  111. gui1.Size=UDim2.new(14,14,14,14)
  112. gui1.StudsOffset=Vector3.new(0,0,0)
  113. gui1.AlwaysOnTop = true
  114. text1=Instance.new("ImageLabel")
  115. text1.Image = "http://www.roblox.com/asset/?id=157979926" --[[210896183]]
  116. text1.Size=UDim2.new(1,0,1,0)
  117. text1.Position=UDim2.new(0,0,0,0)
  118. text1.BackgroundTransparency = 1
  119. text1.Parent=gui1
  120.  
  121. --{{Made by Strazos}}--
  122.  
  123. local p = game.Players.THECREATOR20029
  124. local char = p.Character
  125. local larm = char["Left Arm"]
  126. local rarm = char["Right Arm"]
  127. local lleg = char["Left Leg"]
  128. local rleg = char["Right Leg"]
  129. local hed = char.Head
  130. local torso = char.Torso
  131. local hum = char.Humanoid
  132. local weld = Instance.new("Weld",torso)
  133. weld.Part0 = torso
  134.  
  135. larm.Transparency = 1
  136. rarm.Transparency = 1
  137. lleg.Transparency = 1
  138. rleg.Transparency = 1
  139. hed.Transparency = 1
  140. torso.Transparency = 1
  141.  
  142.  
  143. local train = Instance.new("Part",torso)
  144. train.Anchored = true
  145. train.CanCollide = false
  146. train.Size = Vector3.new(5,5,5)
  147. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  148. weld.Part1 = train
  149. weld.C1 = CFrame.new(0,-4.5,0) * CFrame.Angles(0,math.rad(0),0)
  150. train.Anchored = false
  151. local TrainMesh = Instance.new("SpecialMesh",train)
  152. TrainMesh.MeshType = Enum.MeshType.FileMesh
  153. TrainMesh.Scale = Vector3.new(0.60, 0.60, 0.60)
  154. TrainMesh.MeshId = "rbxassetid://1"
  155. TrainMesh.TextureId = "rbxassetid://1"
  156.  
  157. hum.WalkSpeed = 200;
  158.  
  159.  
  160. for i,v in pairs(char:GetChildren()) do
  161. if v:IsA("Part") then
  162. v.Transparency = 1;
  163. elseif v:IsA("Hat") then
  164. v:Destroy()
  165. elseif v:IsA("Model") then
  166. v:Destroy()
  167. end
  168. end
  169.  
  170.  
  171. local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 25; return s; end
  172. train.Touched:connect(function(p)
  173. if p.Parent then
  174. if p.Parent:IsA("Model") then
  175. if game.Players:FindFirstChild(p.Parent.Name) then
  176. if p.Parent.Name ~= game.Players.THECREATOR20029.Name then
  177. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  178. local Whistle = SFX(135557803)
  179. Whistle:Play()
  180. end
  181. end
  182. end
  183. end
  184. end)
  185.  
  186. local Music = SFX(149573450)
  187. Music.Looped = true;
  188. wait(1)
  189. Music:Play();
  190.  
  191. local particleemitter = Instance.new("ParticleEmitter", torso)
  192. particleemitter.Texture = "http://www.roblox.com/asset/?id=157979926"
  193. particleemitter.VelocitySpread = 180
  194. particleemitter.Lifetime = NumberRange.new(5)
  195. particleemitter.Speed = NumberRange.new(6)
  196. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5)})
  197. particleemitter.RotSpeed = NumberRange.new(-55, 55)
  198. particleemitter.Rate = 150
  199. particleemitter.Rotation = NumberRange.new(-55, 55)
  200. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.7, 0.9), NumberSequenceKeypoint.new(1, 1)})
  201. particleemitter.LightEmission = 0
  202. particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here
  203.  
  204.  
  205.  
  206. local plr = game.Players.THECREATOR20029
  207. local chr = plr.Character
  208. local maus = plr:GetMouse()
  209. local PGui=plr.PlayerGui
  210. local lleg = chr["Left Leg"]
  211. local rleg = chr["Right Leg"]
  212. local larm = chr["Left Arm"]
  213. local rarm = chr["Right Arm"]
  214. local hed = chr.Head
  215. local rutprt = chr.HumanoidRootPart
  216. local torso = chr.Torso
  217. local pseudohead=hed:Clone()
  218. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  219. pseudohead.Name='PseudoHead'
  220. pseudohead.Parent=chr.Head
  221. local pseudoweld=Instance.new('Weld',torso)
  222. pseudoweld.Part0=hed
  223. pseudoweld.Name='PseudoHeadWeld'
  224. pseudoweld.Part1=pseudohead
  225. hed.Transparency=1
  226. for i,x in pairs(chr:GetChildren()) do
  227. if x:IsA'HHat' then x:destroy'' end end
  228. for i,x in pairs(chr:GetChildren()) do
  229. for a,v in pairs(x:GetChildren()) do
  230. if v:IsA'CharacterMesh' then v:destroy''
  231. end
  232. end
  233. end
  234.  
  235. -- Objects
  236.  
  237. local ScreenGui = Instance.new("ScreenGui")
  238. local TextButton = Instance.new("TextButton")
  239.  
  240. -- Properties
  241.  
  242. ScreenGui.Parent = game.Players.THECREATOR20029.PlayerGui
  243.  
  244. TextButton.Parent = ScreenGui
  245. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  246. TextButton.Size = UDim2.new(0, 200, 0, 50)
  247. TextButton.Font = Enum.Font.SourceSans
  248. TextButton.FontSize = Enum.FontSize.Size14
  249. TextButton.Text = "step it up!!1!1"
  250. TextButton.TextSize = 14
  251.  
  252. --[[Function/s being made!]]
  253. function PlayMusic(ID)
  254. for i, v in pairs (game.Workspace:GetChildren()) do
  255. if v:IsA("Sound") then
  256. end
  257. end
  258. local music = Instance.new("Sound")
  259. local asset = "rbxassetid://"
  260. music.SoundId = asset .. ID
  261. music.Parent = workspace
  262. music.Volume = 999
  263. music.Looped = false
  264. music:Play()
  265. end
  266. --[[Connecting functions!]]
  267. TextButton.MouseButton1Down:connect(function()
  268. PlayMusic(136382097)
  269. end)
  270.  
  271. --This is a localscript; you will need to have access to using scripts wherever you want this
  272. p = game:GetService('Players').THECREATOR20029 if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
  273.  
  274. wait(60)
  275. text1.Image = "http://www.roblox.com/asset/?id=0"
  276. wait(1)
  277. text1.Image = "http://www.roblox.com/asset/?id=210896183"
  278. wait(1)
  279. local Music = SFX(0)
  280. wait(1)
  281. local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 25; return s; end
  282. train.Touched:connect(function(p)
  283. if p.Parent then
  284. if p.Parent:IsA("Model") then
  285. if game.Players:FindFirstChild(p.Parent.Name) then
  286. if p.Parent.Name ~= game.Players.THECREATOR20029.Name then
  287. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  288. local Whistle = SFX(0)
  289. Whistle:Play()
  290. end
  291. end
  292. end
  293. end
  294. end)
  295.  
  296. local Music = SFX(181327729)
  297. Music.Looped = true;
  298. Music:Play();
  299.  
  300. plr = game.Players.THECREATOR20029
  301. mouse = plr:GetMouse()
  302. --This has to be a local script.
  303. function onClicked()
  304. local x = Instance.new("Explosion", Workspace)--This means create new explosion in the workspace.
  305. x.Position = mouse.Hit.p
  306. x.BlastRadius = 15
  307. x.BlastPressure = 9e9
  308. end
  309. mouse.Button1Down:connect(onClicked)
  310. -- how to use? Just Left Click it gonna explode on u click XD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement