Advertisement
Guest User

Untitled

a guest
May 25th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.31 KB | None | 0 0
  1.  
  2. -- This script has been converted to FE by iPxter
  3.  
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. do
  8. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87. warn([[ Created by Guestpiki
  88.  
  89.  
  90. If you leak you're a skid.
  91. actions.
  92. WARNING: This is not a finished project, so please. Don't Hate (THIS SCRIPT ISN'T A BOOTLEG, COPY OR INSPIRATION OF "Old Nostalgia Robloxian" THIS SCRIPT WAS MADE TO TEST MY SCRIPTING SKILLS)
  93. e - Explosion
  94. p - Sprint
  95. m - Walk
  96. n - Run
  97. f - Pie
  98. b - Just try it.
  99. n - Run
  100. v - Time Bomb
  101. t,y,u,g,h - Sound change ]])
  102.  
  103.  
  104.  
  105.  
  106. local Player = owner.Character
  107. local Tool = Instance.new("Tool",owner.Backpack)
  108. Tool.CanBeDropped = false
  109. Tool.TextureId = "rbxassetid://3114850474"
  110. local Handle = Instance.new("Part",Tool)
  111. Handle.Name = "Handle"
  112. Handle.Size = Vector3.new(1, 1, 1)
  113. local HandleMesh = Instance.new("SpecialMesh",Handle)
  114. HandleMesh.MeshType = "FileMesh"
  115. HandleMesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  116. HandleMesh.TextureId = "rbxassetid://3112215570"
  117. enabled = true
  118. local ff = Instance.new("ForceField",Player)
  119. ff.Visible = false
  120.  
  121. function onActivated()
  122. if not enabled then
  123. return
  124. end
  125.  
  126. enabled = false
  127. Tool.GripForward = Vector3.new(0,-.759,-.651)
  128. Tool.GripPos = Vector3.new(1.5,-.5,.3)
  129. Tool.GripRight = Vector3.new(1,0,0)
  130. Tool.GripUp = Vector3.new(0,.651,-.759)
  131.  
  132.  
  133.  
  134. wait(3)
  135.  
  136. local h = Tool.Parent:FindFirstChild("Humanoid")
  137. h.Health = "inf"
  138. h.MaxHealth = "inf"
  139. if h.Health == 0 then
  140. h.Health = "inf"
  141. end
  142. Tool.GripForward = Vector3.new(-.976,0,-0.217)
  143. Tool.GripPos = Vector3.new(0.03,0,0)
  144. Tool.GripRight = Vector3.new(.217,0,-.976)
  145. Tool.GripUp = Vector3.new(0,1,0)
  146. wait(1)
  147. Player.Head.face.Texture = "rbxassetid://152628662"
  148. local OHMYGOD = Instance.new("Sound",Player.Head)
  149. OHMYGOD.SoundId = "rbxassetid://363275751"
  150. OHMYGOD.Volume = 5
  151. OHMYGOD.TimePosition = 3
  152. OHMYGOD.Playing = true
  153. wait(4)
  154. Player.Head.face.Texture = "rbxassetid://168024772"
  155. wait(4)
  156. Player.Head.face.Texture = "rbxassetid://246990309"
  157. wait(5)
  158. OHMYGOD:Destroy()
  159. local OHMYGOD2 = Instance.new("Sound",Player.Head)
  160. OHMYGOD2.SoundId = "rbxassetid://907692445"
  161. OHMYGOD2.Volume = 2
  162. OHMYGOD2.Playing = true
  163. OHMYGOD2.TimePosition = 226
  164. OHMYGOD2.Looped = true
  165. Handle.Parent = workspace
  166. Handle.CanCollide = true
  167. Tool:Destroy()
  168. wait(5)
  169. Handle:Destroy()
  170. local gui = Instance.new("BillboardGui", Player)
  171. gui.Adornee = Player.Head
  172. gui.Name = "_status"
  173. gui.Size = UDim2.new(2, 0, 1.2, 0)
  174. gui.StudsOffset = Vector3.new(-9, 8, 0)
  175. local text = Instance.new("TextLabel", gui)
  176. text.Size = UDim2.new(10, 0, 7, 0)
  177. text.FontSize = "Size24"
  178. text.TextScaled = false
  179. text.TextTransparency = 0
  180. text.BackgroundTransparency = 1
  181. text.TextTransparency = 0
  182. text.TextStrokeTransparency = 1
  183. text.Font = "Cartoon"
  184. text.TextColor3 = Color3.fromRGB(255, 255, 255)
  185. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  186. text.Text = "Nostalgia Noob"
  187. text.TextTransparency = 1
  188. text.TextStrokeTransparency = 1
  189. wait(0.05)
  190. text.TextTransparency = .9
  191. text.TextStrokeTransparency = .9
  192. wait(0.05)
  193. text.TextTransparency = .8
  194. text.TextStrokeTransparency = .8
  195. wait(0.05)
  196. text.TextTransparency = .7
  197. text.TextStrokeTransparency = .7
  198. wait(0.05)
  199. text.TextTransparency = .6
  200. text.TextStrokeTransparency = .6
  201. wait(0.05)
  202. text.TextTransparency = .5
  203. text.TextStrokeTransparency = .5
  204. wait(0.05)
  205. text.TextTransparency = .4
  206. text.TextStrokeTransparency = .4
  207. wait(0.05)
  208. text.TextTransparency = .3
  209. text.TextStrokeTransparency = .3
  210. wait(0.05)
  211. text.TextTransparency = .2
  212. text.TextStrokeTransparency = .2
  213. wait(0.05)
  214. text.TextTransparency = .1
  215. text.TextStrokeTransparency = .1
  216. wait(0.05)
  217. text.TextTransparency = 0
  218. text.TextStrokeTransparency = 0
  219. wait(0.05)
  220. for i,v in pairs(Player:children()) do
  221. if v:IsA("CharacterMesh") then
  222. v:Destroy()
  223. end
  224. end
  225. Player["Body Colors"].HeadColor3 = Color3.fromRGB(245, 205, 48)
  226. Player["Body Colors"].LeftArmColor3 = Color3.fromRGB(245, 205, 48)
  227. Player["Body Colors"].RightArmColor3 = Color3.fromRGB(245, 205, 48)
  228. Player["Body Colors"].LeftLegColor3 = Color3.fromRGB(164, 189, 71)
  229. Player["Body Colors"].RightLegColor3 = Color3.fromRGB(164, 189, 71)
  230. Player["Body Colors"].TorsoColor3 = Color3.fromRGB(13, 105, 172)
  231. Player.Head.Mesh.MeshId = "rbxassetid://1068249467"
  232. Player.Head.face.Texture = "rbxassetid://986751626"
  233. local OHMYGOD3 = Instance.new("Sound",Player.Head)
  234. OHMYGOD3.Name = "FirstSound"
  235. OHMYGOD2:Destroy()
  236. OHMYGOD3.SoundId = "rbxassetid://411946428"
  237. OHMYGOD3.Volume = 10
  238. OHMYGOD3.Playing = true
  239. OHMYGOD3.Looped = true
  240. mouse.Icon = "rbxassetid://172802980"
  241. Player.Head.Climbing:Destroy()
  242. Player.Head.FreeFalling:Destroy()
  243. Player.Head.GettingUp.SoundId = "rbxassetid://12222046"
  244. Player.Head.GettingUp.Volume = 10
  245. Player.Head.Splash:Destroy()
  246. Player.Head.Landing:Destroy()
  247. Player.Head.Swimming:Destroy()
  248. Player.Head.Running.SoundId = "rbxassetid://174960816"
  249. Player.Head.Running.Volume = 10
  250. Player.Head.Running.PlaybackSpeed = 1
  251. Player.Head.Jumping.SoundId = "rbxassetid://12222200"
  252. Player.Head.Jumping.Volume = 10
  253.  
  254. for i,v in pairs(Player:children()) do
  255. if v:IsA("Accessory") then
  256. v:Destroy()
  257. end
  258. end
  259.  
  260. for i,v in pairs(Player:children()) do
  261. if v:IsA("CharacterMesh") then
  262. v:Destroy()
  263. end
  264. end
  265.  
  266. for i,v in pairs(Player:children()) do
  267. if v:IsA("Shirt") then
  268. v.ShirtTemplate = "rbxassetid://1110695025"
  269. end
  270. end
  271. for i,v in pairs(Player:children()) do
  272. if v:IsA("Pants") then
  273. v.PantsTemplate = "rbxassetid://1110798365"
  274. end
  275. end
  276. for i,v in pairs(Player:children()) do
  277. if v:IsA("ShirtGraphic") then
  278. v.Graphic = "rbxassetid://1466794520"
  279. end
  280. end
  281. local Shirt = Instance.new("Shirt",Player)
  282. Shirt.ShirtTemplate = "rbxassetid://1110695025"
  283. local Pants = Instance.new("Pants",Player)
  284. Pants.PantsTemplate = "rbxassetid://1110798365"
  285. local TShirt = Instance.new("ShirtGraphic",Player)
  286. TShirt.Graphic = "rbxassetid://1466794520"
  287.  
  288. mouse.Icon = "rbxassetid://172802980"
  289. local sky = Instance.new("Sky",game.Lighting)
  290. sky.CelestialBodiesShown = true
  291. sky.SkyboxBk = "http://www.roblox.com/asset/?id=15436783"
  292. sky.SkyboxDn = "http://www.roblox.com/asset/?id=15436796"
  293. sky.SkyboxFt = "http://www.roblox.com/asset/?id=15436831"
  294. sky.SkyboxLf = "http://www.roblox.com/asset/?id=15437157"
  295. sky.SkyboxRt = "http://www.roblox.com/asset/?id=15437166"
  296. sky.SkyboxUp = "http://www.roblox.com/asset/?id=15437184"
  297. local Light = game.Lighting
  298. Light.Ambient = Color3.fromRGB(255,255,255)
  299. Light.OutdoorAmbient = Color3.fromRGB(255,255,255)
  300. Light.Brightness = 0
  301. Light.GlobalShadows = false
  302. print("Testing.")
  303.  
  304. function Bomb()
  305. local Plant = Instance.new("Part",workspace)
  306. Plant.Shape = "Ball"
  307. Plant.Reflectance = .85
  308. Plant.BrickColor = BrickColor.Blue()
  309. Plant.Size = Vector3.new(2,2,2)
  310. Plant.Anchored = false
  311. Plant.Position = Player.Head.Position
  312. Plant.TopSurface = "Smooth"
  313. Plant.BottomSurface = "Smooth"
  314. wait()
  315. Plant.BrickColor = BrickColor.Red()
  316. local ticck = Instance.new("Sound",Plant)
  317. ticck.SoundId = "rbxassetid://12221976"
  318. ticck:Play()
  319. ticck.Volume = 50
  320. wait(1)
  321. Plant.BrickColor = BrickColor.Black()
  322. ticck:Play()
  323. wait(0.9)
  324. Plant.BrickColor = BrickColor.Red()
  325. ticck:Play()
  326. wait(0.8)
  327. Plant.BrickColor = BrickColor.Black()
  328. ticck:Play()
  329. wait(0.7)
  330. Plant.BrickColor = BrickColor.Red()
  331. ticck:Play()
  332. wait(0.6)
  333. Plant.BrickColor = BrickColor.Black()
  334. ticck:Play()
  335. wait(0.5)
  336. Plant.BrickColor = BrickColor.Red()
  337. ticck:Play()
  338. wait(0.4)
  339. Plant.BrickColor = BrickColor.Black()
  340. ticck:Play()
  341. wait(0.3)
  342. Plant.BrickColor = BrickColor.Red()
  343. ticck:Play()
  344. wait(0.2)
  345. Plant.BrickColor = BrickColor.Black()
  346. ticck:Play()
  347. wait(0.1)
  348. Plant.BrickColor = BrickColor.Red()
  349. ticck:Play()
  350. wait(0)
  351. Plant.BrickColor = BrickColor.Black()
  352. ticck:Play()
  353. wait(0)
  354. Plant.BrickColor = BrickColor.Red()
  355. ticck:Play()
  356. wait(0)
  357. Plant.BrickColor = BrickColor.Black()
  358. ticck:Play()
  359. local ExSound = Instance.new("Sound",Plant)
  360. ExSound.SoundId = "rbxassetid://12222084"
  361. ExSound.Parent = Plant
  362. ExSound.Volume = 50
  363. ExSound:play()
  364. local explosion = Instance.new("Explosion",workspace)
  365. explosion.BlastPressure = 500000
  366. explosion.BlastRadius = 4
  367. explosion.DestroyJointRadiusPercent = 30
  368. explosion.ExplosionType = "Craters"
  369. explosion.Visible = false
  370. local ClassicExplosion = Instance.new("Part")
  371. ClassicExplosion.Parent = workspace
  372. ClassicExplosion.Anchored = true
  373. ClassicExplosion.Shape = "Ball"
  374. ClassicExplosion.Color = Color3.new(1,0,0)
  375. ClassicExplosion.Size = Vector3.new(20,20,20)
  376. ClassicExplosion.Name = "Explosion"
  377. ClassicExplosion.BottomSurface = "Smooth"
  378. ClassicExplosion.TopSurface = "Smooth"
  379. ClassicExplosion.Material = "Neon"
  380. ClassicExplosion.Position = Plant.Position
  381. ClassicExplosion.CanCollide = false
  382. ClassicExplosion.CastShadow = false
  383. Plant:Destroy()
  384. wait(0.2)
  385. ClassicExplosion:Destroy()
  386. wait(5)
  387. ExSound:Destroy()
  388. end
  389.  
  390. function Explosionshaha()
  391. local sound = Instance.new("Sound")
  392. sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  393. sound.Parent = script.Parent
  394. sound.Volume = 10
  395. sound:play()
  396. local explosion = Instance.new("Explosion",workspace)
  397. explosion.BlastPressure = 500000
  398. explosion.BlastRadius = 4
  399. explosion.DestroyJointRadiusPercent = 30
  400. explosion.ExplosionType = "Craters"
  401. explosion.Visible = false
  402. local ClassicExplosion = Instance.new("Part")
  403. ClassicExplosion.Parent = explosion
  404. ClassicExplosion.Anchored = true
  405. ClassicExplosion.Shape = "Ball"
  406. ClassicExplosion.Color = Color3.new(1,0,0)
  407. ClassicExplosion.Size = Vector3.new(20,20,20)
  408. ClassicExplosion.Name = "Explosion"
  409. ClassicExplosion.BottomSurface = "Smooth"
  410. ClassicExplosion.TopSurface = "Smooth"
  411. ClassicExplosion.Material = "Neon"
  412. ClassicExplosion.Position = Player.Torso.Position
  413. ClassicExplosion.CanCollide = false
  414. ClassicExplosion.CastShadow = false
  415. wait(0.2)
  416. ClassicExplosion:Destroy()
  417. wait(5)
  418. sound:Destroy()
  419. end
  420. function Sprint()
  421. print("Sprinting")
  422. h.WalkSpeed = 100
  423. end
  424. function Walk()
  425. print("Walking")
  426. h.WalkSpeed = 16
  427. end
  428.  
  429. function Run()
  430. print("Running")
  431. h.WalkSpeed = 50
  432. end
  433.  
  434. function pie()
  435. print("Oops I totally didn't copy this from Meme Animations ;)")
  436. h.WalkSpeed = 0
  437. local piesound = Instance.new("Sound", Player.Head)
  438. piesound.SoundId = "rbxassetid://252252871"
  439. piesound.Playing = true
  440. piesound.Volume = 10
  441. wait(0.79)
  442. Player.Humanoid.Jump = true
  443. wait(1.35)
  444. local PieTool = Instance.new("Tool",Player)
  445. PieTool.CanBeDropped = false
  446. PieTool.TextureId = "rbxassetid://3114850880"
  447. local PieHandle = Instance.new("Part",PieTool)
  448. PieHandle.Name = "Handle"
  449. PieHandle.Size = Vector3.new(2.2, 2.2, 2.2)
  450. local PieHandleMesh = Instance.new("SpecialMesh",PieHandle)
  451. PieHandleMesh.MeshType = "FileMesh"
  452. PieHandleMesh.MeshId = "rbxassetid://40312463"
  453. PieHandleMesh.TextureId = "rbxassetid://40311968"
  454. PieHandleMesh.Scale = Vector3.new(2.2, 2.2, 2.2)
  455. PieHandleMesh.Offset = Vector3.new(1.4, -.3, -1.5)
  456. PieHandle.Anchored = true
  457. PieHandle.Position = Player.Head.Position
  458. Player.Head.Anchored = true
  459. PieHandle.Orientation = Player["Head"].Orientation
  460. wait(2.5)
  461. local ClassicExplosion2 = Instance.new("Part")
  462. ClassicExplosion2.Parent = workspace
  463. ClassicExplosion2.Anchored = true
  464. ClassicExplosion2.Shape = "Ball"
  465. ClassicExplosion2.Color = Color3.new(1,0,0)
  466. ClassicExplosion2.Size = Vector3.new(20,20,20)
  467. ClassicExplosion2.Name = "Explosion"
  468. ClassicExplosion2.BottomSurface = "Smooth"
  469. ClassicExplosion2.TopSurface = "Smooth"
  470. ClassicExplosion2.Material = "Neon"
  471. ClassicExplosion2.Position = Player.Torso.Position
  472. ClassicExplosion2.CanCollide = false
  473. ClassicExplosion2.CastShadow = false
  474. wait(0.2)
  475. ClassicExplosion2:Destroy()
  476. wait(2)
  477. PieHandle.Anchored = false
  478. PieTool:Destroy()
  479. Player.Head.Anchored = false
  480. piesound:Destroy()
  481. h.WalkSpeed = 16
  482. end
  483.  
  484. function BOOM()
  485. print("ur ded")
  486. Player.Head.face.Texture = "rbxassetid://3120305670"
  487. Player.Humanoid.PlatformStand = true
  488. local Snap = Instance.new("Sound",Player.Head)
  489. Snap.Name = "Snap"
  490. Snap.Volume = 10
  491. Snap.SoundId = "rbxassetid://12222140"
  492. Snap.Playing = true
  493. wait(0.257)
  494. Snap.SoundId = "rbxassetid://580806904"
  495. Snap.TimePosition = 0
  496. Snap.Playing = true
  497. wait(3.9735785386320685575)
  498. Player.Head.face.Texture = "rbxassetid://3120298750"
  499. wait(2)
  500. Player.Head.face.Texture = "rbxassetid://3120301544"
  501. wait(1)
  502. Player.Humanoid.PlatformStand = false
  503. Player.Humanoid.Jump = true
  504. h.WalkSpeed = 0
  505. Player.Torso["Left Hip"].CurrentAngle = 800
  506. Player.Torso["Left Hip"].MaxVelocity = 1.15
  507. Player.Torso["Left Shoulder"].CurrentAngle = 800
  508. Player.Torso["Left Shoulder"].MaxVelocity = 1.15
  509. Player.Torso["Right Hip"].CurrentAngle = 800
  510. Player.Torso["Right Hip"].MaxVelocity = 1.15
  511. Player.Torso["Right Shoulder"].CurrentAngle = 800
  512. Player.Torso["Right Shoulder"].MaxVelocity = 1.15
  513. Player.Torso.CFrame=Player.Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,180,180)
  514. Player.HumanoidRootPart:Destroy()
  515. wait(9)
  516. ff:Destroy()
  517. Player.Head.face.Texture = "rbxassetid://3120305670"
  518. local sound = Instance.new("Sound")
  519. sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  520. sound.Parent = script.Parent
  521. sound.Volume = 1
  522. sound:play()
  523. h.Health = 0
  524. local explosion = Instance.new("Explosion",workspace)
  525. explosion.Visible = false
  526. local ClassicExplosion = Instance.new("Part")
  527. ClassicExplosion.Parent = explosion
  528. ClassicExplosion.Anchored = true
  529. ClassicExplosion.Shape = "Ball"
  530. ClassicExplosion.Color = Color3.new(1,0,0)
  531. ClassicExplosion.Size = Vector3.new(20,20,20)
  532. ClassicExplosion.Name = "Explosion"
  533. ClassicExplosion.BottomSurface = "Smooth"
  534. ClassicExplosion.TopSurface = "Smooth"
  535. ClassicExplosion.Material = "Neon"
  536. ClassicExplosion.Position = Player.Torso.Position
  537. ClassicExplosion.CanCollide = false
  538. ClassicExplosion.CastShadow = false
  539. OHMYGOD3.SoundId = "rbxassetid://1074233689"
  540. OHMYGOD3.TimePosition = 0
  541. OHMYGOD3.Looped = false
  542. wait(0.2)
  543. ClassicExplosion:Destroy()
  544. wait(5)
  545. sound:Destroy()
  546. mouse.Icon = ""
  547. end
  548. end
  549.  
  550. function GottaBanBanBan()
  551. if owner.Name == "Guestpiki" then
  552. local BanHammer = Instance.new("Tool", owner.Backpack)
  553. BanHammer.GripForward = Vector3.new(0,0,1)
  554. BanHammer.GripPos = Vector3.new(0,-1.031,0.156)
  555. BanHammer.GripRight = Vector3.new(-1,0,0)
  556. BanHammer.GripUp = Vector3.new(0,1,0)
  557. BanHammer.Name = "Ban Hammer (Used for abusing.)"
  558. BanHammer.CanBeDropped = false
  559. local BanHandle = Instance.new("Part",BanHammer)
  560. BanHandle.Name = "Handle"
  561. BanHandle.Locked = true
  562. local BanMesh = Instance.new("SpecialMesh", BanHandle)
  563. BanMesh.MeshType = "FileMesh"
  564. BanMesh.Scale = Vector3.new(0.5,0.5,0.5)
  565. BanMesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
  566. BanMesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
  567. local banAnim = Instance.new("Animation", BanHammer)
  568. banAnim.AnimationId = "http://www.roblox.com/twohandswordwithswingout-item?id=32659706"
  569. BanHandle.Touched:connect(function(hit)
  570. local kickguy = game.Players:GetPlayerFromCharacter(hit.Parent)
  571. if kickguy then
  572. kickguy.Character.Head:Destroy()
  573. local OHSNAP = Instance.new("Sound",workspace)
  574. OHSNAP.SoundId = "rbxassetid://12221990"
  575. OHSNAP.Volume = "inf"
  576. OHSNAP:Play()
  577. end
  578. end)
  579. BanHammer.Activated:connect(function(click)
  580. Player.Humanoid:LoadAnimation(banAnim)
  581. end)
  582. else
  583. print("You're not the creator of the script!")
  584. end
  585. end
  586. function sit()
  587. Player.Humanoid.Sit = true
  588. end
  589.  
  590. mouse.KeyDown:connect(function(key)
  591. if key == 'e' then
  592. Explosionshaha()
  593. elseif key == 'p' then
  594. Sprint()
  595. elseif key == "n" then
  596. Run()
  597. elseif key == 'm' then
  598. Walk()
  599. elseif key == "f" then
  600. pie()
  601. elseif key == "b" then
  602. BOOM()
  603. elseif key == "v" then
  604. Bomb()
  605. elseif key == "z" then
  606. GottaBanBanBan()
  607. elseif key == "u" then
  608. sit()
  609. end
  610. end)
  611.  
  612. enabled = true
  613. function onEquipped()
  614.  
  615. end
  616.  
  617. Tool.Activated:connect(onActivated)
  618. Tool.Equipped:connect(onEquipped)
  619.  
  620. function waitForChild(parent, childName)
  621. local child = parent:findFirstChild(childName)
  622. if child then return child end
  623. while true do
  624. child = parent.ChildAdded:wait()
  625. if child.Name==childName then return child end
  626. end
  627. end
  628.  
  629. -- ANIMATION
  630.  
  631. -- declarations
  632.  
  633. local Figure = script.Parent
  634. local Torso = waitForChild(Figure, "Torso")
  635. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  636. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  637. local RightHip = waitForChild(Torso, "Right Hip")
  638. local LeftHip = waitForChild(Torso, "Left Hip")
  639. local Neck = waitForChild(Torso, "Neck")
  640. local Humanoid = waitForChild(Figure, "Humanoid")
  641. local pose = "Standing"
  642.  
  643. local toolAnim = "None"
  644. local toolAnimTime = 0
  645.  
  646. local jumpMaxLimbVelocity = 0.75
  647.  
  648. -- functions
  649.  
  650. function onRunning(speed)
  651. if speed>0 then
  652. pose = "Running"
  653. else
  654. pose = "Standing"
  655. end
  656. end
  657.  
  658. function onDied()
  659. pose = "Dead"
  660. end
  661.  
  662. function onJumping()
  663. pose = "Jumping"
  664. end
  665.  
  666. function onClimbing()
  667. pose = "Climbing"
  668. end
  669.  
  670. function onGettingUp()
  671. pose = "GettingUp"
  672. end
  673.  
  674. function onFreeFall()
  675. pose = "FreeFall"
  676. end
  677.  
  678. function onFallingDown()
  679. pose = "FallingDown"
  680. end
  681.  
  682. function onSeated()
  683. pose = "Seated"
  684. end
  685.  
  686. function onPlatformStanding()
  687. pose = "PlatformStanding"
  688. end
  689.  
  690. function onSwimming(speed)
  691. if speed>0 then
  692. pose = "Running"
  693. else
  694. pose = "Standing"
  695. end
  696. end
  697.  
  698. function moveJump()
  699. RightShoulder.MaxVelocity = 0.4
  700. LeftShoulder.MaxVelocity = 0.4
  701. RightShoulder:SetDesiredAngle(3.14)
  702. LeftShoulder:SetDesiredAngle(-3.14)
  703. RightHip:SetDesiredAngle(0)
  704. LeftHip:SetDesiredAngle(0)
  705. wait(0.8)
  706. end
  707.  
  708.  
  709. -- same as jump for now
  710.  
  711. function moveFreeFall()
  712. RightShoulder.MaxVelocity = 0.4
  713. LeftShoulder.MaxVelocity = 0.4
  714. RightShoulder:SetDesiredAngle(3.14)
  715. LeftShoulder:SetDesiredAngle(-3.14)
  716. RightHip:SetDesiredAngle(0)
  717. LeftHip:SetDesiredAngle(0)
  718. wait(0.8)
  719. end
  720.  
  721. function moveSit()
  722. RightShoulder.MaxVelocity = 0.15
  723. LeftShoulder.MaxVelocity = 0.15
  724. RightShoulder:SetDesiredAngle(3.14 /2)
  725. LeftShoulder:SetDesiredAngle(-3.14 /2)
  726. RightHip:SetDesiredAngle(3.14 /2)
  727. LeftHip:SetDesiredAngle(-3.14 /2)
  728. end
  729.  
  730. function getTool()
  731. for _, kid in ipairs(Figure:GetChildren()) do
  732. if kid.className == "Tool" then return kid end
  733. end
  734. return nil
  735. end
  736.  
  737. function getToolAnim(tool)
  738. for _, c in ipairs(tool:GetChildren()) do
  739. if c.Name == "toolanim" and c.className == "StringValue" then
  740. return c
  741. end
  742. end
  743. return nil
  744. end
  745.  
  746. function animateTool()
  747.  
  748. if (toolAnim == "None") then
  749. RightShoulder:SetDesiredAngle(1.57)
  750. return
  751. end
  752.  
  753. if (toolAnim == "Slash") then
  754. RightShoulder.MaxVelocity = 0.5
  755. RightShoulder:SetDesiredAngle(0)
  756. return
  757. end
  758.  
  759. if (toolAnim == "Lunge") then
  760. RightShoulder.MaxVelocity = 0.5
  761. LeftShoulder.MaxVelocity = 0.5
  762. RightHip.MaxVelocity = 0.5
  763. LeftHip.MaxVelocity = 0.5
  764. RightShoulder:SetDesiredAngle(1.57)
  765. LeftShoulder:SetDesiredAngle(1.0)
  766. RightHip:SetDesiredAngle(1.57)
  767. LeftHip:SetDesiredAngle(1.0)
  768. return
  769. end
  770. end
  771.  
  772. function move(time)
  773. local amplitude
  774. local frequency
  775.  
  776. if (pose == "Jumping") then
  777. moveJump()
  778. return
  779. end
  780.  
  781. if (pose == "FreeFall") then
  782. moveFreeFall()
  783. return
  784. end
  785.  
  786. if (pose == "Seated") then
  787. moveSit()
  788. return
  789. end
  790.  
  791. local climbFudge = 0
  792.  
  793. if (pose == "Running") then
  794. RightShoulder.MaxVelocity = 0.1
  795. LeftShoulder.MaxVelocity = 0.1
  796. amplitude = 1
  797. frequency = 9
  798. elseif (pose == "Climbing") then
  799. RightShoulder.MaxVelocity = 0.3
  800. LeftShoulder.MaxVelocity = 0.3
  801. amplitude = 0
  802. frequency = 0
  803. climbFudge = -3.14
  804. else
  805. amplitude = 0.1
  806. frequency = 1
  807. end
  808.  
  809. desiredAngle = amplitude * math.sin(time*frequency)
  810.  
  811. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  812. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  813. RightHip:SetDesiredAngle(-desiredAngle)
  814. LeftHip:SetDesiredAngle(-desiredAngle)
  815.  
  816.  
  817. local tool = getTool()
  818.  
  819. if tool then
  820.  
  821. animStringValueObject = getToolAnim(tool)
  822.  
  823. if animStringValueObject then
  824. toolAnim = animStringValueObject.Value
  825. -- message recieved, delete StringValue
  826. animStringValueObject.Parent = nil
  827. toolAnimTime = time + .3
  828. end
  829.  
  830. if time > toolAnimTime then
  831. toolAnimTime = 0
  832. toolAnim = "None"
  833. end
  834.  
  835. animateTool()
  836.  
  837.  
  838. else
  839. toolAnim = "None"
  840. toolAnimTime = 0
  841. end
  842. end
  843.  
  844.  
  845. -- connect events
  846.  
  847. Humanoid.Died:connect(onDied)
  848. Humanoid.Running:connect(onRunning)
  849. Humanoid.Jumping:connect(onJumping)
  850. Humanoid.Climbing:connect(onClimbing)
  851. Humanoid.GettingUp:connect(onGettingUp)
  852. Humanoid.FreeFalling:connect(onFreeFall)
  853. Humanoid.FallingDown:connect(onFallingDown)
  854. Humanoid.Seated:connect(onSeated)
  855. Humanoid.PlatformStanding:connect(onPlatformStanding)
  856. Humanoid.Swimming:connect(onSwimming)
  857. -- main program
  858.  
  859. local runService = game:service("RunService");
  860.  
  861. while Figure.Parent~=nil do
  862. local _, time = wait(0.1)
  863. move(time)
  864. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement