Advertisement
seasee54u

Untitled

Apr 22nd, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.20 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  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.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. script.Parent = workspace.CurrentCamera
  137. local plr = game:GetService("Players").LocalPlayer
  138.  
  139. local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
  140. tool.Grip = CFrame.new(0,-0.2,-1.6) * CFrame.Angles(math.rad(100),math.rad(180),math.rad(0))
  141. tool.Name = "bluE"
  142.  
  143. local part = Instance.new("Part",tool)
  144. part.Name = "Handle"
  145. part.Size = Vector3.new(4,6,4)
  146. part.TopSurface = "Smooth"
  147. part.BottomSurface = "Smooth"
  148. part.CanCollide = false
  149. part:BreakJoints()
  150.  
  151. local mesh = Instance.new("SpecialMesh",part)
  152. mesh.MeshId = "rbxassetid://10604848" --mesh.MeshId = "rbxassetid://132920499"
  153. mesh.TextureId = "rbxassetid://139521211" --"http://www.roblox.com/asset/?id=134479421"
  154. mesh.Scale = Vector3.new(2,2,2)
  155.  
  156. local sound = Instance.new("Sound",part)
  157. sound.SoundId = "rbxassetid://1186311262"
  158. sound.Volume = 10
  159.  
  160. local sound2 = Instance.new("Sound",part)
  161. sound2.SoundId = "rbxassetid://280667448"
  162. sound2.Volume = 5
  163.  
  164. local sound3 = Instance.new("Sound",part)
  165. sound3.SoundId = "rbxassetid://198973822"
  166. sound3.Volume = 10
  167.  
  168. local sound4 = Instance.new("Sound",part)
  169. sound4.SoundId = "rbxassetid://258057783"
  170. sound4.Volume = 10
  171.  
  172. local sound5 = Instance.new("Sound",part)
  173. sound5.SoundId = "rbxassetid://130932305"
  174. sound5.Volume = 10
  175.  
  176. local sound6 = Instance.new("Sound",part)
  177. sound6.SoundId = "rbxassetid://906084456"
  178. sound6.Volume = 10
  179. sound6.TimePosition = 2
  180.  
  181. local function NewFakeEvent()
  182. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  183. return Fake
  184. end
  185.  
  186. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  187.  
  188. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  189.  
  190. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  191. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  192. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  193.  
  194. local function TriggerEvent(self,Event,...)
  195.  
  196. local Trigger = Mouse[Event]
  197. if Trigger and Trigger.fakeEvent and Trigger.Function then
  198. Trigger.Function(...)
  199. end
  200. end
  201. Mouse.TrigEvent = TriggerEvent
  202. UserInputService.TrigEvent = TriggerEvent
  203. Event.OnServerEvent:Connect(function(FiredBy,Input)
  204. if FiredBy.Name ~= owner.Name then end
  205. if Input.MouseEvent then
  206. Mouse.Target = Input.Target
  207. Mouse.Hit = Input.Hit
  208. else
  209.  
  210. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  211. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  212. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  213. end
  214. for _,Action in pairs(ContextActionService.Actions) do
  215. for _,Key in pairs(Action.Keys) do
  216. if Key==Input.KeyCode then
  217. Action.Function(Action.Name,Input.UserInputState,Input)
  218. end
  219. end
  220. end
  221. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  222. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  223. end
  224. end)
  225. InternalData["Mouse"] = Mouse
  226. InternalData["ContextActionService"] = ContextActionService
  227. InternalData["UserInputService"] = UserInputService
  228. Event.Parent = NLS([[
  229. local Player = owner
  230. local Event = script:WaitForChild("UserInput")
  231. local UserInputService = game:GetService("UserInputService")
  232. local Mouse = Player:GetMouse()
  233. local Input = function(Input,gameProcessedEvent)
  234. if gameProcessedEvent then return end
  235. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  236. end
  237. UserInputService.InputBegan:Connect(Input)
  238. UserInputService.InputEnded:Connect(Input)
  239. local Hit,Target
  240. while wait(1/30) do
  241. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  242. Hit,Target = Mouse.Hit,Mouse.Target
  243. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  244. end
  245. end
  246. ]],rp.Character)
  247. end
  248.  
  249. RealGame = game;game = setmetatable({},{
  250. __index = function (self,Index)
  251. local Sandbox = function (Thing)
  252. if Thing:IsA("Player") then
  253. local RealPlayer = Thing
  254. return setmetatable({},{
  255. __index = function (self,Index)
  256. local Type = type(RealPlayer[Index])
  257. if Type == "function" then
  258. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  259. return function (self)
  260. return InternalData["Mouse"]
  261. end
  262. end
  263. return function (self,...)
  264. return RealPlayer[Index](RealPlayer,...)
  265. end
  266. else
  267. if Index == "PlrObj" then
  268. return RealPlayer
  269. end
  270. return RealPlayer[Index]
  271. end
  272. end;
  273. __tostring = function(self)
  274. return RealPlayer.Name
  275. end
  276. })
  277. end
  278. end
  279.  
  280. if RealGame[Index] then
  281. local Type = type(RealGame[Index])
  282. if Type == "function" then
  283. if Index:lower() == "getservice" or Index:lower() == "service" then
  284. return function (self,Service)
  285. if Service:lower() == "players" then
  286. return setmetatable({},{
  287. __index = function (self2,Index2)
  288. local RealService = RealGame:GetService(Service)
  289. local Type2 = type(Index2)
  290. if Type2 == "function" then
  291. return function (self,...)
  292. return RealService[Index2](RealService,...)
  293. end
  294. else
  295. if Index2:lower() == "localplayer" then
  296. return Sandbox(owner)
  297. end
  298. return RealService[Index2]
  299. end
  300. end;
  301. __tostring = function(self)
  302. return RealGame:GetService(Service).Name
  303. end
  304. })
  305. elseif Service:lower() == "contextactionservice" then
  306. return InternalData["ContextActionService"]
  307. elseif Service:lower() == "contextactionservice" then
  308. return InternalData["UserInputService"]
  309. elseif Service:lower() == "runservice" then
  310. return setmetatable({},{
  311. __index = function(self2,Index2)
  312. local RealService = RealGame:GetService(Service)
  313. local Type2 = type(Index2)
  314. if Type2 == "function" then
  315. return function (self,...)
  316. return RealService[Index2](RealService,...)
  317. end
  318. else
  319. if Index2:lower() == "bindtorenderstep" then
  320. return function (self,Name,Priority,Function)
  321. return RealGame:GetService("RunService").Stepped:Connect(Function)
  322. end
  323. end
  324. if Index2:lower() == "renderstepped" then
  325. return RealService["Stepped"]
  326. end
  327. return RealService[Index2]
  328. end
  329. end
  330. })
  331. else
  332. return RealGame:GetService(Service)
  333. end
  334. end
  335. end
  336. return function (self,...)
  337. return RealGame[Index](RealGame,...)
  338. end
  339. else
  340. if game:GetService(Index) then
  341. return game:GetService(Index)
  342. end
  343. return RealGame[Index]
  344. end
  345. else
  346. return nil
  347. end
  348. end
  349.  
  350. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  351. print("Complete! Running...")
  352.  
  353. print("controls:")
  354. print("z - make it morning")
  355. print("x - make it night")
  356. print("c - clean workspace")
  357. print("v - heal the player your mouse is pointing at")
  358. print("f - make the player your mouse is pointing at fat")
  359. print("n - make everyone fat")
  360. print("e - annihilate the player your mouse is pointing at")
  361. print("p - suicide")
  362. print("k - kill other players")
  363. print("b - control the player your mouse it pointing at")
  364. print("r - tp evryone to you")
  365. print("t - send the player your mouse is pointing at to 'heaven'")
  366. print("q - spawn pet")
  367. print("g - spawn a blackhole")
  368. oil = game.Players.LocalPlayer
  369. sauce = oil.Character
  370. tor = sauce:FindFirstChild("Torso") or sauce:FindFirstChild("UpperTorso")
  371. head = sauce:FindFirstChild("Head")
  372. larm = sauce:FindFirstChild("Left Arm") or sauce:FindFirstChild("LeftUpperArm")
  373. rarm = sauce:FindFirstChild("Right Arm") or sauce:FindFirstChild("RightUpperArm")
  374. rleg = sauce:FindFirstChild("Right Leg") or sauce:FindFirstChild("RightUpperLeg")
  375. lleg = sauce:FindFirstChild("Left Leg") or sauce:FindFirstChild("LeftUpperLeg")
  376. hum = sauce:FindFirstChildOfClass("Humanoid")
  377. humroot = sauce:FindFirstChild("HumanoidRootPart")
  378. mou = oil:GetMouse()
  379. remoteequipped = true
  380. controlling = false
  381. light = game:GetService("Lighting")
  382. tool = Instance.new("Tool", oil.Backpack)
  383. tool.Name = "Remote"
  384. hand = Instance.new("Part", tool)
  385. hand.Name = "Handle"
  386. hand.Size = Vector3.new(1, 1, 1)
  387. hand.Transparency = 1
  388. p1 = Instance.new("Part", hand)
  389. p1.Size = Vector3.new(0.6, 0.1, 1.2)
  390. p1.Material = "Metal"
  391. p1.Name = "p1"
  392. p2 = Instance.new("Part", hand)
  393. p2.Size = Vector3.new(0.4, 0.1, 0.1)
  394. p2.Material = "Metal"
  395. p2.Name = "p2"
  396. p2.Shape = "Cylinder"
  397. p3 = Instance.new("Part", hand)
  398. p3.Shape = "Ball"
  399. p3.Material = "Neon"
  400. p3.Size = Vector3.new(0.15, 0.15, 0.15)
  401. p3.BrickColor = BrickColor.new("Crimson")
  402. p3.Name = "p3"
  403. p4 = Instance.new("Part", hand)
  404. p4.Size = Vector3.new(0.2, 0.4, 0.4)
  405. p4.Material = "Neon"
  406. p4.Name = "p4"
  407. p4.BrickColor = BrickColor.new("Maroon")
  408. p4.Shape = "Cylinder"
  409. w1 = Instance.new("Weld", p1)
  410. w1.Part0 = hand
  411. w1.Part1 = p1
  412. w1.C1 = CFrame.new(0, 0, 0.6)
  413. w1.Name = "w1"
  414. w2 = Instance.new("Weld", p2)
  415. w2.Part0 = hand
  416. w2.Part1 = p2
  417. w2.C1 = CFrame.new(1.3, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  418. w3 = Instance.new("Weld", p3)
  419. w3.Part0 = hand
  420. w3.Part1 = p3
  421. w3.C1 = CFrame.new(0, 0, 1.5)
  422. w4 = Instance.new("Weld", p4)
  423. w4.Part0 = hand
  424. w4.Part1 = p4
  425. w4.C1 = CFrame.new(0.1, 0, 0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90))
  426.  
  427.  
  428. tool.Equipped:connect(function()
  429. remoteequipped = true
  430. function pressed(key)
  431. if remoteequipped == true then
  432. if key == "x" then
  433. light.TimeOfDay = 21
  434. elseif key == "z" then
  435. light.TimeOfDay = 7
  436. elseif key == "c" then
  437. for i,v in pairs(workspace:GetChildren()) do
  438. if v:IsA("Part") and v.Name ~= "Base" then
  439. v.Locked = false
  440. v:remove()
  441. end
  442. if v:IsA("Model") and not v:FindFirstChildOfClass("Humanoid") then
  443. v:remove()
  444. end
  445. end
  446. elseif key == "p" then
  447. hum.Health = 0
  448. elseif key == "k" then
  449. for i,v in pairs(workspace:GetChildren()) do
  450. if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then
  451. khum = v:FindFirstChildOfClass("Humanoid")
  452. khum.Health = 0
  453. end
  454. end
  455. elseif key == "r" then
  456. for i,v in pairs(workspace:GetChildren()) do
  457. if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then
  458. vtor = v:FindFirstChild("Torso" )or v:FindFirstChild("UpperTorso")
  459. vtor.CFrame = tor.CFrame * CFrame.new(0, 0, -5)
  460. end
  461. end
  462. elseif key == "v" then
  463. if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  464. mouhum = mou.Target.Parent:FindFirstChildOfClass("Humanoid")
  465. mouhum.Health = mouhum.MaxHealth
  466. mouhead = mou.Target.Parent:FindFirstChild("Head")
  467. bill = Instance.new("BillboardGui", mouhead)
  468. bill.AlwaysOnTop = true
  469. bill.StudsOffset = Vector3.new(0, 2, 0)
  470. bill.Adornee = mouhead
  471. bill.Size = UDim2.new(5, 35, 5, 35)
  472. btext = Instance.new("TextLabel", bill)
  473. btext.Text = mou.Target.Parent.Name.." has been Healed!"
  474. btext.Font = "Bodoni"
  475. btext.TextSize = 30
  476. btext.TextScaled = true
  477. btext.BorderSizePixel = 0
  478. btext.BackgroundTransparency = 1
  479. btext.Size = UDim2.new(1.5, 0, 0.5, 0)
  480. btext.TextColor = BrickColor.new("Bright green")
  481. game:GetService("Debris"):AddItem(bill, 2)
  482. end
  483. elseif key == "e" then
  484. if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  485. local nomoretor = mou.Target.Parent:FindFirstChild("Torso") or mou.Target.Parent:FindFirstChild("UpperTorso")
  486. local nomorehum = mou.Target.parent:FindFirstChildOfClass("Humanoid")
  487. local explo = Instance.new("Explosion", workspace)
  488. explo.Position = nomoretor.Position
  489. nomorehum.Health = 0
  490. end
  491. elseif key == "f" then
  492. if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  493. local fatman = mou.Target.Parent
  494. local fatmanhum = fatman:FindFirstChildOfClass("Humanoid")
  495. fatmanhum.WalkSpeed = 8
  496. local fattor = mou.Target.Parent:FindFirstChild("Torso") or mou.Target.Parent:FindFirstChild("UpperTorso")
  497. local hinum = Instance.new("Sound", fattor)
  498. hinum.SoundId = "rbxassetid://1278031541"
  499. hinum.Volume = 10
  500. local realfat = Instance.new("Part", fattor)
  501. realfat.BrickColor = fattor.BrickColor
  502. realfat.Material = "SmoothPlastic"
  503. local supaweld = Instance.new("Weld", realfat)
  504. supaweld.Part0 = fattor
  505. supaweld.Part1 = realfat
  506. local fat = Instance.new("SpecialMesh", realfat)
  507. fat.MeshType = "Sphere"
  508. fat.Scale = Vector3.new(0.6, 1.6, 0.9)
  509. fat.Offset = Vector3.new(0, -0.4, -0.7)
  510. hinum:Play()
  511. if fatman:FindFirstChildOfClass("Shirt") then
  512. fatman:FindFirstChildOfClass("Shirt"):remove()
  513. end
  514. end
  515. elseif key == "b" then
  516. if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") and controlling == false then
  517. controlling = true
  518. cman = mou.Target.Parent
  519. mtor = cman:FindFirstChild("Torso") or cman:FindFirstChild("UpperTorso")
  520. mlarm = cman:FindFirstChild("Left Arm") or cman:FindFirstChild("LeftUpperArm")
  521. mrarm = cman:FindFirstChild("Right Arm") or cman:FindFirstChild("RightUpperArm")
  522. mlleg = cman:FindFirstChild("Left Leg") or cman:FindFirstChild("LeftUpperLeg")
  523. mrleg = cman:FindFirstChild("Right Leg") or cman:FindFirstChild("RightUpperLeg")
  524. mhead = cman:FindFirstChild("Head")
  525. mhum = cman:FindFirstChildOfClass("Humanoid")
  526. mhum.PlatformStand = true
  527. hum.NameOcclusion = "NoOcclusion"
  528. mface = head:FindFirstChild("face")
  529. mface.Transparency = 1
  530. humroot.Transparency = 1
  531. for i,v in pairs(sauce:GetChildren()) do
  532. if v:IsA("Part") then
  533. v.Transparency = 1
  534. end
  535. if v:IsA("Accessory") then
  536. v.Handle.Transparency = 1
  537. end
  538. end
  539. ow1 = Instance.new("Weld", tor)
  540. ow1.Part0 = tor
  541. ow1.Part1 = mtor
  542. ow2 = Instance.new("Weld", larm)
  543. ow2.Part0 = larm
  544. ow2.Part1 = mlarm
  545. ow3 = Instance.new("Weld", rarm)
  546. ow3.Part0 = rarm
  547. ow3.Part1 = mrarm
  548. ow4 = Instance.new("Weld", lleg)
  549. ow4.Part0 = lleg
  550. ow4.Part1 = mlleg
  551. ow5 = Instance.new("Weld", rleg)
  552. ow5.Part0 = rleg
  553. ow5.Part1 = mrleg
  554. ow6 = Instance.new("Weld", head)
  555. ow6.Part0 = head
  556. ow6.Part1 = mhead
  557. elseif controlling == true then
  558. controlling = false
  559. ow1:Destroy()
  560. ow2:Destroy()
  561. ow3:Destroy()
  562. ow4:Destroy()
  563. ow5:Destroy()
  564. ow6:Destroy()
  565. mhum.PlatformStand = false
  566. hum.NameOcclusion = "OccludeAll"
  567. humrootTransparency = 1
  568. mface.Transparency = 0
  569. for i,v in pairs(sauce:GetChildren()) do
  570. if v:IsA("Part") and v ~= humroot then
  571. v.Transparency = 0
  572. end
  573. if v:IsA("Accessory") then
  574. v.Handle.Transparency = 0
  575. end
  576. end
  577. end
  578. elseif key == "n" then
  579. for i,v in pairs(workspace:GetChildren()) do
  580. if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then
  581. local fatman = v
  582. local fatmanhum = fatman:FindFirstChildOfClass("Humanoid")
  583. fatmanhum.WalkSpeed = 8
  584. local fattor = fatman:FindFirstChild("Torso") or fatman:FindFirstChild("UpperTorso")
  585. local hinum2 = Instance.new("Sound", fattor)
  586. hinum2.SoundId = "rbxassetid://1278031541"
  587. hinum2.Volume = 10
  588. local realfat = Instance.new("Part", fattor)
  589. realfat.BrickColor = fattor.BrickColor
  590. realfat.Material = "SmoothPlastic"
  591. local supaweld = Instance.new("Weld", realfat)
  592. supaweld.Part0 = fattor
  593. supaweld.Part1 = realfat
  594. local fat = Instance.new("SpecialMesh", realfat)
  595. fat.MeshType = "Sphere"
  596. fat.Scale = Vector3.new(0.6, 1.6, 0.9)
  597. fat.Offset = Vector3.new(0, -0.4, -0.7)
  598. hinum2:Play()
  599. if fatman:FindFirstChildOfClass("Shirt") then
  600. fatman:FindFirstChildOfClass("Shirt"):remove()
  601. end
  602. end
  603. end
  604. elseif key == "t" then
  605. if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  606. local goneman = mou.Target.Parent
  607. local gonehead = goneman:FindFirstChild("Head")
  608. local gonetor = goneman:FindFirstChild("Torso") or goneman:FindFirstChild("UpperTorso")
  609. local lightb = Instance.new("Part", goneman)
  610. lightb.Shape = "Cylinder"
  611. lightb.CanCollide = false
  612. lightb.Anchored = true
  613. lightb.Size = Vector3.new(300, 10, 10)
  614. lightb.Material = "Neon"
  615. lightb.Transparency = 0.5
  616. lightb.BrickColor = BrickColor.new("New Yeller")
  617. lightb.CFrame = gonetor.CFrame * CFrame.new(0, 140, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90))
  618. local start = gonetor.CFrame
  619. local finish = lightb.CFrame * CFrame.new(140, 0, 0)
  620. for i = 0,1,.01 do
  621. gonetor.CFrame = start:lerp(finish, i)
  622. wait()
  623. end
  624. gonehead.Size = Vector3.new(50, 50, 50)
  625. lightb:Destroy()
  626. end
  627. elseif key == "q" then
  628. if mou.Target ~= nil then
  629. local dont = Instance.new("Part", sauce)
  630. dont.CFrame = mou.Hit
  631. dont.Material = "Sand"
  632. dont.BrickColor = BrickColor.new("Pastel yellow")
  633. dont.Size = Vector3.new(3, 3, 3)
  634. dont.Shape = "Ball"
  635. dont.Anchored = true
  636. local obj = Instance.new("Sound", dont)
  637. local feats = {463838589, 691897627, 179270320, 425407550, 1074595721, 1065045593, 142688397, 1308566029, 1402510823}
  638. obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)]
  639. obj.Volume = 10
  640. obj.Looped = true
  641. obj:Play()
  642. oil.Chatted:connect(function(msg)
  643. if msg:lower():sub(1, 7) == "plastic" then
  644. dont.Material = "Plastic"
  645. elseif msg:lower():sub(1, 5) == "slate" then
  646. dont.Material = "Slate"
  647. elseif msg:lower():sub(1, 3) == "ice" then
  648. dont.Material = "Ice"
  649. elseif msg:lower():sub(1, 5) == "metal" then
  650. dont.Material = "Metal"
  651. elseif msg:lower():sub(1, 4) == "neon" then
  652. dont.Material = "Neon"
  653. elseif msg:lower():sub(1, 5) == "grass" then
  654. dont.Material = "Grass"
  655. elseif msg:lower():sub(1, 4) == "sand" then
  656. dont.Material = "Sand"
  657. elseif msg:lower():sub(1, 9) == "woodplank" then
  658. dont.Material = "WoodPlanks"
  659. elseif msg:lower():sub(1, 4) == "wood" then
  660. dont.Material = "Wood"
  661. elseif msg:lower():sub(1, 6) == "marble" then
  662. dont.Material = "Marble"
  663. elseif msg:lower():sub(1, 8) == "concrete" then
  664. dont.Material = "Concrete"
  665. elseif msg:lower():sub(1, 5) == "brick" then
  666. dont.Material = "Brick"
  667. elseif msg:lower():sub(1, 7) == "granite" then
  668. dont.Material = "Granite"
  669. elseif msg:lower():sub(1, 6) == "pebble" then
  670. dont.Material = "Pebble"
  671. elseif msg:lower():sub(1, 11) == "cobblestone" then
  672. dont.Material = "Cobblestone"
  673. elseif msg:lower():sub(1, 13) == "corrodedmetal" then
  674. dont.Material = "CorrodedMetal"
  675. elseif msg:lower():sub(1, 12) == "diamondplate" then
  676. dont.Material = "DiamondPlate"
  677. elseif msg:lower():sub(1, 4) == "foil" then
  678. dont.Material = "Foil"
  679. elseif msg:lower():sub(1, 6) == "fabric" then
  680. dont.Material = "Fabric"
  681. elseif msg:lower():sub(1, 6) == "yellow" then
  682. dont.BrickColor = BrickColor.new("New Yeller")
  683. elseif msg:lower():sub(1, 6) == "purple" then
  684. dont.BrickColor = BrickColor.new("Bright violet")
  685. elseif msg:lower():sub(1, 3) == "red" then
  686. dont.BrickColor = BrickColor.new("Crimson")
  687. elseif msg:lower():sub(1, 5) == "black" then
  688. dont.BrickColor = BrickColor.new("Really black")
  689. elseif msg:lower():sub(1, 5) == "white" then
  690. dont.BrickColor = BrickColor.new("Institutional white")
  691. elseif msg:lower():sub(1, 4) == "pink" then
  692. dont.BrickColor = BrickColor.new("Hot pink")
  693. elseif msg:lower():sub(1, 5) == "green" then
  694. dont.BrickColor = BrickColor.new("Bright green")
  695. elseif msg:lower():sub(1, 4) == "grey" then
  696. dont.BrickColor = BrickColor.new("Medium stone grey")
  697. elseif msg:lower():sub(1, 5) == "brown" then
  698. dont.BrickColor = BrickColor.new("Burnt Sienna")
  699. elseif msg:lower():sub(1, 6) == "orange" then
  700. dont.BrickColor = BrickColor.new("Deep orange")
  701. elseif msg:lower():sub(1, 4) == "blue" then
  702. dont.BrickColor = BrickColor.new("Really blue")
  703. elseif msg:lower():sub(1, 4) == "cyan" then
  704. dont.BrickColor = BrickColor.new("Cyan")
  705. elseif msg:lower():sub(1, 6) == "pastel" then
  706. dont.BrickColor = BrickColor.new("Pastel yellow")
  707. elseif msg:lower():sub(1, 5) == "ghost" then
  708. dont.Transparency = 0.7
  709. elseif msg:lower():sub(1, 5) == "alive" then
  710. dont.Transparency = 0
  711. elseif msg:lower():sub(1, 5) == "block" then
  712. dont.Shape = "Block"
  713. elseif msg:lower():sub(1, 4) == "ball" then
  714. dont.Shape = "Ball"
  715. elseif msg:lower():sub(1, 3) == "bye" then
  716. dont:Destroy()
  717. elseif msg:lower():sub(1, 17) == "pick another song" then
  718. obj:Stop()
  719. obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)]
  720. obj.Volume = 10
  721. obj.Looped = true
  722. obj:Play()
  723. elseif msg:lower():sub(1, 4) == "play" then
  724. obj:Play()
  725. elseif msg:lower():sub(1, 4) == "stop" then
  726. obj:Stop()
  727. elseif msg:lower():sub(1, 3) == "add" then
  728. obj:Stop()
  729. local arg = msg:sub(5, 999)
  730. obj.SoundId = "rbxassetid://"..arg
  731. obj:Play()
  732. end
  733. end)
  734. while true do
  735. for i = 0,1,.001 do
  736. dont.CFrame = dont.CFrame:lerp(tor.CFrame * CFrame.new(0, 5, 3), i)
  737. dont.Size = Vector3.new(obj.PlaybackLoudness/80, obj.PlaybackLoudness/80, obj.PlaybackLoudness/80)
  738. wait()
  739. end
  740. wait()
  741. end
  742. end
  743. elseif key == "g" then
  744. if mou.Target ~= nil then
  745. local MAN = mou.Target.Parent
  746. local MANT = MAN:FindFirstChild("Torso") or MAN:FindFirstChild("UpperTorso")
  747. local hole = Instance.new("Part", workspace)
  748. hole.Shape = "Ball"
  749. hole.Size = Vector3.new(0.7, 0.7, 0.7)
  750. hole.BrickColor = BrickColor.new("Eggplant")
  751. hole.Anchored = true
  752. hole.Material = "Neon"
  753. hole.CFrame = mou.Hit
  754. for i,v in pairs(workspace:GetChildren()) do
  755. if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then
  756. local owtor = v
  757. blacktor = owtor:FindFirstChild("Torso") or owtor:FindFirstChild("UpperTorso")
  758. bodpos = Instance.new("BodyPosition", blacktor)
  759. bodpos.Position = hole.Position
  760. bodpos.P = 5000000000
  761. bodpos.MaxForce = Vector3.new(500000000, 500000000, 500000000)
  762. end
  763. end
  764. end
  765.  
  766. end
  767. end
  768. end
  769. mou.KeyDown:connect(pressed)
  770. end)
  771. tool.Unequipped:connect(function()
  772. remoteequipped = false
  773. end)
  774.  
  775. function firstHum(target)
  776. for i,v in pairs(target:GetChildren()) do
  777. if v:IsA("Humanoid") then
  778. return v
  779. end
  780. end
  781. return nil
  782. end
  783.  
  784. local slap = false
  785. local cd = false
  786.  
  787. plr:GetMouse().Button1Down:connect(function()
  788. if tool.Parent == plr.Character then
  789. if slap == false then
  790. slap = true
  791. sound2:Play()
  792. local str = Instance.new("StringValue")
  793. str.Name = "toolanim"
  794. str.Value = "Slash"
  795. str.Parent = tool
  796. wait(1)
  797. slap = false
  798. end
  799. end
  800. end)
  801.  
  802. part.Touched:connect(function(hit)
  803. if slap == true then
  804. if cd == false then
  805. if not hit:IsDescendantOf(plr.Character) then
  806. if hit.Parent:IsA("Model") then
  807. local fhum = firstHum(hit.Parent)
  808. if fhum then
  809. cd = true
  810. fhum.PlatformStand = true
  811. sound:Play()
  812. local con1
  813. con1 = game:GetService("RunService").Heartbeat:connect(function()
  814. fhum.PlatformStand = true
  815. end)
  816. wait(0.1)
  817. local vel = Instance.new("BodyVelocity",hit)
  818. vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
  819. vel.MaxForce = Vector3.new(10000000,10000000,10000000)
  820. wait(1)
  821. cd = false
  822. vel:Destroy()
  823. local vel2 = Instance.new("BodyVelocity",hit)
  824. vel2.Velocity = Vector3.new(0,12.5,0)
  825. vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
  826. local p2 = Instance.new("Part",hit)
  827. p2.Anchored = true
  828. p2.Transparency = 0.6
  829. p2.CanCollide = false
  830. p2.Size = Vector3.new(0.2,0.2,0.2)
  831. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  832. p2.BrickColor = BrickColor.new("New Yeller")
  833. p2.Material = "Neon"
  834. local m2 = Instance.new("CylinderMesh",p2)
  835. m2.Scale = Vector3.new(60,10000,60)
  836. local scln = sound3:Clone()
  837. scln.Parent = hit
  838. scln:Play()
  839. local con2
  840. con2 = game:GetService("RunService").Heartbeat:connect(function()
  841. p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  842. end)
  843. wait(7)
  844. vel2.Velocity = Vector3.new(0,0,0)
  845. wait(0.5)
  846. scln:Stop()
  847. local scln3 = sound5:Clone()
  848. scln3.Parent = hit
  849. scln3:Play()
  850. wait(1)
  851. local bav = Instance.new("BodyAngularVelocity",hit)
  852. bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  853. vel2.Velocity = Vector3.new(0,-250,0)
  854. p2.BrickColor = BrickColor.new("Really red")
  855. local scln6 = sound6:Clone()
  856. scln6.Parent = hit
  857. scln6:Play()
  858. local continue = false
  859. local htc
  860. htc = hit.Touched:connect(function(hitp)
  861. if not hitp:IsDescendantOf(hit.Parent) then
  862. continue = true
  863. scln6:Stop()
  864. vel2:Destroy()
  865. con2:Disconnect()
  866. con1:Disconnect()
  867. htc:Disconnect()
  868. p2:Destroy()
  869. end
  870. end)
  871. repeat wait() until continue == true
  872. local ctab = {}
  873. for i=1,4 do
  874. local p = Instance.new("Part",hit)
  875. p.Size = Vector3.new(30,30,30)
  876. p.Anchored = true
  877. p.CanCollide = false
  878. p.TopSurface = "Smooth"
  879. p.BottomSurface = "Smooth"
  880. p.Color = Color3.fromRGB(255,math.random(0,255),0)
  881. p.CFrame = hit.CFrame
  882. local con
  883. con = game:GetService("RunService").Heartbeat:connect(function()
  884. p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  885. p.Transparency = p.Transparency + 0.01
  886. if p.Transparency >= 1 then
  887. con:Disconnect()
  888. end
  889. end)
  890. table.insert(ctab,con)
  891. end
  892. Instance.new("Explosion",workspace).Position = hit.Position
  893. local scln2 = sound4:Clone()
  894. scln2.Parent = hit
  895. scln2:Play()
  896. vel2:Destroy()
  897. hit.Parent:BreakJoints()
  898. repeat wait() until not hit:IsDescendantOf(workspace)
  899. con2:Disconnect()
  900. end
  901. end
  902. end
  903. end
  904. end
  905. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement