faisalhacksnock

Untitled

Aug 21st, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 221.11 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2.  
  3. local ScreenGui = Instance.new("ScreenGui", Player.PlayerGui)
  4. ScreenGui.Name = "Z3X Gui"
  5. local Frame1 = Instance.new("Frame", ScreenGui)
  6. Frame1.Name = "Main"
  7. Frame1.Size = UDim2.new(0.3, 0, 0.4, 0)
  8. Frame1.Position = UDim2.new(0.02, 0, 0.2, 0)
  9. Frame1.Style = "RobloxSquare"
  10. local Label1 = Instance.new("TextLabel", Frame1)
  11. Label1.Size = UDim2.new(1,0,0,0.5,0)
  12. Label1.TextColor3 = Color3.new(170, 0, 0)
  13. Label1.Text = "X3Z Gui V1"
  14. Label1.BorderSizePixel = 0
  15. Label1.Font = "Legacy"
  16. Label1.FontSize = "Size12"
  17. Label1.Position = UDim2.new(0, 0, 0.02, 0)
  18. local admin = Instance.new("TextButton", Frame1)
  19. admin.Size = UDim2.new(0.2, 0, 0.1, 0)
  20. admin.Position = UDim2.new(0, 0, 0.1, 0)
  21. admin.Text = "Admin"
  22. admin.BackgroundColor3 = Color3.new(0, 110, 160)
  23. admin.BackgroundTransparency = 0.6
  24. admin.TextColor3 = Color3.new(1, 1, 1)
  25. admin.MouseButton1Down:connect(function(admin1)
  26. adminlist = {Player.Name}
  27. bannedlist = {"Nobody is banned right now..."}
  28. texture = ""
  29.  
  30. disableBan = false
  31. disableAdmin = false
  32.  
  33. owner = Player.Name --Change this to your name
  34.  
  35. --[[Hey guys! Its nominate10 here. I've decided to update these commands myself, as I see Person299 probably gave up on it.
  36. You will be able to find the commands made by me, down below. Send me feedback & ideas. Thanks!
  37. For the most recent script (I update frequently), go to http://www.roblox.com/Nominate10s-Admin-Commands-V2-5-item?id=34853394
  38. --]]
  39.  
  40.  
  41. --[[
  42. I update this command script alot, so if you want to get the newest version of the script, go to http://www.roblox.com/Item.aspx?ID=5277383 every once in a while.
  43.  
  44. If theres anything you think this command script needs, just message me (Person299) and i might put it in. :)
  45. And also, if you find any bugs, report them to me.
  46.  
  47. The commands are,
  48.  
  49. commands
  50. Shows a list of all the commands
  51.  
  52. BY tyrell123ng8
  53. rickroll/tyrell123ng8
  54. makes tyrell123ng8 dance to annoying rickroll XD
  55.  
  56. unrickrool/tyrell123ng8
  57. saves tyrell123ng8 from the rick astley 0_0
  58.  
  59. music/soundid
  60. creates a song for others to here with the sound id as soundid,
  61. it only plays once...
  62.  
  63. BY tyrell123ng8:
  64. fire/tyrell123ng8
  65. Gives tyrell123ng8 fire
  66.  
  67. unfire/tyrell123ng8
  68. Removes any fire in tyrell123ng8's Torso
  69.  
  70. smoke/tyrell123ng8
  71. Gives tyrell123ng8 smoke
  72.  
  73. unsmoke/tyrell123ng8
  74. Removes any smoke in tyrell123ng8's Torso
  75.  
  76. color/tyrell123ng8/blue
  77. Colors tyrell123ng8's body blue and removes its clothes.
  78.  
  79. advancedbtools/tyrell123ng8
  80. Gives tyrell123ng8 advanced building tools.
  81.  
  82. insert/tyrell123ng8
  83. Gives tyrell123ng8 an insert tool.
  84.  
  85. noinsert/tyrell123ng8
  86. Removes tyrell123ng8's insert tool.
  87.  
  88. resetambient/
  89. Resets the ambient to 255; 255; 255
  90.  
  91. randomambient/
  92. Sets the Ambient to a random color.
  93.  
  94. getambient/
  95. Displays the current ambient to the speaker.
  96.  
  97. platformstand/tyrell123ng8
  98. Sets the PlatformStand property of tyrell123ng8's Humanoid to true
  99.  
  100. unplatformstand/tyrell123ng8
  101. Sets the PlatformStand property of tyrell123ng8's Humanoid to false
  102.  
  103. cframe1/tyrell123ng8
  104. Gives tyrell123ng8 a CFrame Tool
  105.  
  106. cframe2/tyrell123ng8
  107. Gives tyrell123ng8 a GUI CFrame Tool
  108.  
  109. skateboard/tyrell123ng8
  110. Gives tyrell123ng8 a skateboard
  111.  
  112. appearance/tyrell123ng8/416314
  113. Changes tyrell123ng8's character look to the ID of 416314 and kills him.
  114.  
  115. wedge/4/1/2
  116. creates a wedge with the given dimensions.
  117.  
  118. cylinder/4/1/2
  119. Creates a cylinder with the given dimensions.
  120.  
  121. block/4/1/2
  122. Creates a brick with a BlockMesh with the given dimensions.
  123.  
  124. sphere/4/4/4
  125. Creates a sphere with the given dimensions
  126.  
  127. plate/4/1/2
  128. Creates a plate with the given dimensions
  129.  
  130. burn/tyrell123ng8
  131. Sets tyrell123ng8 on fire and slowly depleats his health.
  132.  
  133. watch/tyrell123ng8
  134. Sets YOUR camera to view tyrell123ng8.
  135.  
  136. removegear/tyrell123ng8
  137. Removes all tools in tyrell123ng8's StarterGear
  138.  
  139. savetools/tyrell123ng8
  140. Copies all of tyrell123ng8's tools in Backpack and clones them to his StarterGear.
  141.  
  142. localscript/tyrell123ng8/[source]
  143. Makes a LocalScript inside nominate10 with the defined source
  144.  
  145. setupteams/
  146. MUST BE DONE BEFORE USING TEAM-RELATED COMMANDS! (unless teams already exist)
  147.  
  148. team/Bloxxers/Bright blue
  149. Makes a new team with the name "Bloxxers" and the TeamColor "Bright Blue" (CASE SENSITIVE!)
  150.  
  151. changeteam/tyrell123ng8/Bloxxers
  152. Changes tyrell123ng8's team to Bloxxers
  153.  
  154. removeteam/Bloxxers
  155. Removes the Bloxxers team and moves its members to an "Unassigned" team
  156.  
  157. ====================================
  158. ====================================
  159. BY Person299
  160.  
  161. fix
  162. If the command script breaks for you, say this to fix it
  163.  
  164. kill/Person299
  165. kills Person299
  166.  
  167. loopkill/Person299
  168. Repeatedly kills Person299 when he respawns
  169.  
  170. unloopkill/Person299
  171. Undos loopkill/
  172.  
  173. heal/Person299
  174. Returns Person299 to full health
  175.  
  176. damage/Person299/50
  177. Makes Person299's character take 50 damage
  178.  
  179. health/Person299/999999
  180. Makes Person299's MaxHealth and Health 999999
  181.  
  182. kick/Person299
  183. Removes Person299 from the game, cannot be used by admin/ed people
  184.  
  185. ban/Person299
  186. Removes Person299 from the game and keeps him from reenterring, cannot be used by admin/ed people
  187.  
  188. bannedlist
  189. Shows a list of everyone banned
  190.  
  191. unban/Person299
  192. Unbans Person299
  193.  
  194. explode/Person299
  195. Explodes Person299's character
  196.  
  197. rocket/Person299
  198. Straps a rocket onto Person299's back
  199.  
  200. removetools/Person299
  201. Removes all of Person299's tools.
  202.  
  203. givetools/Person299
  204. Gives Person299 all the tools in StarterPack
  205.  
  206. givebtools/Person299
  207. Gives Person299 the building tools
  208.  
  209. sit/Person299
  210. Makes Person299 sit
  211.  
  212. part/4/1/2
  213. Makes a part with the given dimensions appear over your character
  214.  
  215. respawn/Person299
  216. Makes Person299's character respawn
  217.  
  218. jail/Person299
  219. Makes a lil jail cell around Person299's character
  220.  
  221. unjail/Person299
  222. Undos jail/
  223.  
  224. punish/Person299
  225. Puts Person299's character in game.Lighting
  226.  
  227. unpunish/Person299
  228. Undos punish/
  229.  
  230. merge/Person299/Farvei
  231. Makes Person299 control Farvei's character
  232.  
  233. teleport/Person299/nccvoyager
  234. Teleports Person299's character to nccvoyager's character
  235.  
  236. control/Person299
  237. Makes you control Person299's character
  238.  
  239. change/Person299/Money/999999
  240. Makes the Money value in Person299's leaderstats 999999
  241.  
  242. tools
  243. Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting
  244.  
  245. give/Person299/Tool
  246. Give's Person299 a tool, the toolname can be abbreviated
  247.  
  248. time/15.30
  249. Makes game.Lighting.TimeOfDay 15:30
  250.  
  251. ambient/255/0/0
  252. Makes game.Lighting.Ambient 255,0,0
  253.  
  254. maxplayers/20
  255. Makes game.Players.MaxPlayers 20
  256.  
  257. nograv/Person299
  258. Makes Person299 almost weightless
  259.  
  260. antigrav/Person299
  261. Gives Person299 antigravity properties
  262.  
  263. grav/Person299
  264. Returns Person299's gravity to normal
  265.  
  266. highgrav/Person299
  267. Makes Person299 heavier
  268.  
  269. setgrav/Person299/-196
  270. Sets Person299's gravity
  271.  
  272. trip/Person299
  273. Makes Person299's character trip
  274.  
  275. walkspeed/Person299/99
  276. Makes Person299's character's humanoid's WalkSpeed 99, 16 is average
  277.  
  278. invisible/Person299
  279. Makes Person299's character invisible
  280.  
  281. visible/Person299
  282. Undos invisible/
  283.  
  284. freeze/Person299
  285. Makes Person299's character unable to move
  286.  
  287. thaw/Person299
  288. Undos freeze/
  289.  
  290. unlock/Person299
  291. Makes Person299's character unlocked
  292.  
  293. lock/Person299
  294. Makes Person299's character locked
  295.  
  296. ff/Person299
  297. Gives Person299's character a ForceField
  298.  
  299. unff/Person299
  300. Undos ff/
  301.  
  302. sparkles/Person299
  303. Makes Person299's character sparkly
  304.  
  305. unsparkles/Person299
  306. Undos sparkles/
  307.  
  308. shield/Person299
  309. Makes a destructive shield thingy appear around Person299
  310.  
  311. unshield/Person299
  312. Undos shield/
  313.  
  314. god/Person299
  315. Makes Person299 godish
  316.  
  317. ungod/Person299
  318. Undos god/
  319.  
  320. zombify/Person299
  321. Makes Person299 a infecting zombie
  322.  
  323. admin/Person299
  324. Makes Person299 able to use the command script, cannot be used by admin/ed people
  325.  
  326. adminlist
  327. Shows a list of everyone in the adminlist
  328.  
  329. unadmin/Person299
  330. Undos admin/, cannot be used by admin/ed people
  331.  
  332. shutdown
  333. Shuts the server down, cannot be used by admin/ed people
  334.  
  335. m/Fallout 2 is one of the best games ever made
  336. Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds
  337.  
  338. h/i like pie
  339. Makes a hint appear on the screen saying "i like pie" for 2 seconds
  340.  
  341. c/ game.Workspace:remove()
  342. Makes a script which source is whats after c/
  343.  
  344. clearscripts
  345. Removes all scripts created by c/ or localscript/
  346.  
  347. clearbricks
  348. Removes any created bricks and jails
  349.  
  350. Capitalisation doesnt matter, and name input can be abbreviated.
  351. Just about any name input can be replaced with multiple names seperated by ","s, me, all, others, guests, admins, nonadmins, random, or team teamname.
  352.  
  353. --]]
  354.  
  355. namelist = { }
  356. variablelist = { }
  357. flist = { }
  358.  
  359. local source = script:FindFirstChild("source")
  360. if source ~= nil then
  361. sbbu = source:clone()
  362. sbbu.Disabled = false
  363. else
  364. print("source doesnt exist, your command script may malfunction")
  365. end
  366.  
  367.  
  368. tools = Instance.new("Model")
  369. c = game.Lighting:GetChildren()
  370. for i=1,#c do
  371. if c[i].className == "Tool" then
  372. c[i]:clone().Parent = tools
  373. end
  374. if c[i].className == "HopperBin" then
  375. c[i]:clone().Parent = tools
  376. end end
  377.  
  378. function NOMINATE10(person)
  379. if person.Name == owner then return true end
  380. return false
  381. end
  382.  
  383. function findintable(name,tab)
  384. for i,v in pairs(tab) do
  385. if v == name then return i end
  386. end
  387. return false
  388. end
  389.  
  390. function findplayer(name,speaker)
  391. if string.lower(name) == "all" then
  392. local chars = { }
  393. local c = game.Players:GetChildren()
  394. for i =1,#c do
  395. if c[i].className == "Player" then
  396. table.insert(chars,c[i])
  397. end end
  398. return chars
  399. elseif string.sub(string.lower(name),1,9) == "nonadmins" then
  400. local nnum = 0
  401. local chars = { }
  402. local c = game.Players:GetChildren()
  403. for i=1,#c do
  404. local isadmin = false
  405. for i2 =1,#namelist do
  406. if namelist[i2] == c[i].Name then
  407. isadmin = true
  408. end end
  409. if isadmin == false then
  410. nnum = nnum + 1
  411. table.insert(chars,c[i])
  412. end end
  413. if nnum == 0 then
  414. return 0
  415. else
  416. return chars
  417. end
  418. elseif string.sub(string.lower(name),1,6) == "admins" then
  419. local anum = 0
  420. local chars = { }
  421. local c = game.Players:GetChildren()
  422. for i=1,#c do
  423. for i2 =1,#namelist do
  424. if namelist[i2] == c[i].Name then
  425. anum = anum + 1
  426. table.insert(chars,c[i])
  427. end end end
  428. if anum == 0 then
  429. return 0
  430. else
  431. return chars
  432. end
  433. elseif string.sub(string.lower(name),1,6) == "random" then
  434. while true do
  435. local c = game.Players:GetChildren()
  436. local r = math.random(1,#c)
  437. if c[r].className == "Player" then
  438. return { c[r] }
  439. end end
  440. elseif string.sub(string.lower(name),1,6) == "guests" then
  441. local gnum = 0
  442. local chars = { }
  443. local c = game.Players:GetChildren()
  444. for i=1,#c do
  445. if string.sub(c[i].Name,1,5) == "Guest" then
  446. gnum = gnum + 1
  447. table.insert(chars,c[i])
  448. end end
  449. if gnum == 0 then
  450. return 0
  451. else
  452. return chars
  453. end
  454. elseif string.sub(string.lower(name),1,5) == "team " then
  455. local theteam = nil
  456. local tnum = 0
  457. if game.Teams ~= nil then
  458. local c = game.Teams:GetChildren()
  459. for i =1,#c do
  460. if c[i].className == "Team" then
  461. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
  462. theteam = c[i]
  463. tnum = tnum + 1
  464. end end end
  465. if tnum == 1 then
  466. local chars = { }
  467. local c = game.Players:GetChildren()
  468. for i =1,#c do
  469. if c[i].className == "Player" then
  470. if c[i].TeamColor == theteam.TeamColor then
  471. table.insert(chars,c[i])
  472. end end end
  473. return chars
  474. end end
  475. return 0
  476. elseif string.lower(name) == "me" then
  477. local person299 = { speaker }
  478. return person299
  479. elseif string.lower(name) == "others" then
  480. local chars = { }
  481. local c = game.Players:GetChildren()
  482. for i =1,#c do
  483. if c[i].className == "Player" then
  484. if c[i] ~= speaker then
  485. table.insert(chars,c[i])
  486. end end end
  487. return chars
  488. else
  489. local chars = { }
  490. local commalist = { }
  491. local ssn = 0
  492. local lownum = 1
  493. local highestnum = 1
  494. local foundone = false
  495. while true do
  496. ssn = ssn + 1
  497. if string.sub(name,ssn,ssn) == "" then
  498. table.insert(commalist,lownum)
  499. table.insert(commalist,ssn - 1)
  500. highestnum = ssn - 1
  501. break
  502. end
  503. if string.sub(name,ssn,ssn) == "," then
  504. foundone = true
  505. table.insert(commalist,lownum)
  506. table.insert(commalist,ssn)
  507. lownum = ssn + 1
  508. end end
  509. if foundone == true then
  510. for ack=1,#commalist,2 do
  511. local cnum = 0
  512. local char = nil
  513. local c = game.Players:GetChildren()
  514. for i =1,#c do
  515. if c[i].className == "Player" then
  516. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
  517. char = c[i]
  518. cnum = cnum + 1
  519. end end end
  520. if cnum == 1 then
  521. table.insert(chars,char)
  522. end end
  523. if #chars ~= 0 then
  524. return chars
  525. else
  526. return 0
  527. end
  528. else
  529. local cnum = 0
  530. local char = nil
  531. local c = game.Players:GetChildren()
  532. for i =1,#c do
  533. if c[i].className == "Player" then
  534. if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
  535. char = {c[i]}
  536. cnum = cnum + 1
  537. end end end
  538. if cnum == 1 then
  539. return char
  540. elseif cnum == 0 then
  541. text("That name is not found.",1,"Message",speaker)
  542. return 0
  543. elseif cnum > 1 then
  544. text("That name is ambiguous.",1,"Message",speaker)
  545. return 0
  546. end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
  547.  
  548. function findteam(name,speak)
  549. teams = {}
  550. if name then
  551. for i,v in pairs(game:GetService("Teams"):GetChildren()) do
  552. if v.Name:sub(1,name:len()):lower() == name:lower() then
  553. table.insert(teams,v)
  554. end
  555. end
  556. if #teams == 0 then
  557. text("that team is not found.",1,"Message",speak)
  558. return false
  559. end
  560. if teams > 1 then
  561. text("That team is ambiguous.",1,"Message",speaker)
  562. return false
  563. end
  564. return teams[1]
  565. end end
  566.  
  567. function createscript(source,par)
  568. local a = sbbu:clone()
  569. local context = Instance.new("StringValue")
  570. context.Name = "Context"
  571. context.Value = source
  572. context.Parent = a
  573. while context.Value ~= source do wait() end
  574. a.Parent = par
  575. local b = Instance.new("IntValue")
  576. b.Name = "Is A Created Script"
  577. b.Parent = a
  578. end
  579.  
  580. function localscript(source,par)
  581. local a = script.localsource:clone()
  582. local context = Instance.new("StringValue")
  583. context.Name = "Context"
  584. context.Value = source
  585. context.Parent = a
  586. while context.Value ~= source do wait() end
  587. a.Parent = par
  588. local b = Instance.new("IntValue")
  589. b.Name = "Is A Created Script"
  590. b.Parent = a
  591. end
  592.  
  593.  
  594. function text(message,duration,type,object)
  595. local m = Instance.new(type)
  596. m.Text = message
  597. m.Parent = object
  598. wait(duration)
  599. if m.Parent ~= nil then
  600. m:remove()
  601. end end
  602.  
  603. function foc(msg,speaker)
  604. if string.lower(msg) == "fix" then
  605. for i =1,#namelist do
  606. if namelist[i] == speaker.Name then
  607. variablelist[i]:disconnect()
  608. table.remove(variablelist,i)
  609. table.remove(namelist,i)
  610. table.remove(flist,i)
  611. end end
  612. local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
  613. table.insert(namelist,speaker.Name)
  614. table.insert(variablelist,tfv)
  615. local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
  616. table.insert(flist,tfv)
  617. end end
  618.  
  619. function PERSON299(name)
  620. for i =1,#adminlist do
  621. if adminlist[i] == name then
  622. return true
  623. end end
  624. return false
  625. end
  626.  
  627. function oc(msg,speaker)
  628.  
  629. if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
  630. local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/
  631. if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
  632. for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
  633. if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
  634. local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
  635. if human ~= nil then--This part makes sure the line above found a humanoid
  636. human.Health = 0--This part makes the humanoid's health 0
  637. end end end end end--This line contains the ends for all the if statements and the for loop
  638.  
  639. if string.sub(string.lower(msg),1,2) == "m/" then
  640. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
  641. end
  642.  
  643. if string.sub(string.lower(msg),1,2) == "h/" then
  644. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
  645. end
  646.  
  647. if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
  648. createscript(string.sub(msg,3),game.Workspace)
  649. end
  650.  
  651. local upmsg = msg
  652. local msg = string.lower(msg)
  653. -- COMMANDS BY TOBY151
  654.  
  655. if msg:sub(1,8) == "rickroll/" then
  656. local player = findplayer(msg:sub(9),speaker)
  657. if player ~= 0 then
  658. findrr = player:FindFirstChild("RickRoll")
  659. if not findrr then
  660. sound = Instance.new("Sound")
  661. sound.Parent = player
  662. sound.Volume = 1 -- Thats it turn the volume up...
  663. sound.Pitch = 0.97 -- Just make it MORE annoying
  664. sound.Looped = true -- LOL! THATS GONNA KILL THEM XD
  665. sound.Name = "RickRoll"
  666. sound:Play()
  667. anim = player.Character.Humanoid:LoadAnimation(script.Dance)
  668. anim:Play()
  669. wait(64)
  670. anim:Stop()
  671. end end end
  672.  
  673. if msg:sub(1,10) == "unrickroll/" then
  674. local player = findplayer(msg:sub(11),speaker)
  675. if player ~= 0 then
  676. music = player:FindFirstChild("RickRoll")
  677. if music then
  678. music.Parent = nil
  679. end end end
  680.  
  681. if msg:sub(1,6) == "music/" then
  682. local musicpart = Instance.new("Part")
  683. musicpart.Anchored = true
  684. musicpart.Locked = true
  685. musicpart.Transparncy = 1
  686. musicpart.Position = Vector3.new(10, 2, 10) -- about the centre of the map
  687. local music = Instance.new("Sound")
  688. music.SoundId = msg:sub(7)
  689. music.Volume = 1
  690. music.Pitch = 1
  691. music.Looped = false
  692. music.PlayOnRemove = false
  693. music.Name = "eltobyio151selSoundio"
  694. music.Parent = musicpart
  695. musicpart.Parent = game.Workspace
  696. music:Play()
  697. end
  698.  
  699. --NOW SHOWING COMMANDS MADE BY: Nominate10
  700. --THE FOLLOWING COMMANDS WERE MADE PURELY BY NOMINATE10!
  701. if msg:sub(1,5) == "fire/" then
  702. local player = findplayer(msg:sub(6),speaker)
  703. if player ~= 0 then
  704. for i = 1,#player do
  705. if player[i].Character then
  706. if player[i].Character.Torso:FindFirstChild("Fire") == nil then
  707. fire = Instance.new("Fire")
  708. fire.Parent = player[i].Character.Torso
  709. fire.Color = Color3.new(math.random(),math.random(),math.random())
  710. end end end end end
  711.  
  712.  
  713. if msg:sub(1,7) == "unfire/" then
  714. local player = findplayer(msg:sub(8),speaker)
  715. if player ~= 0 then
  716. for i = 1,#player do
  717. if player[i].Character and player[i].Character.Torso then
  718. local c = player[i].Character.Torso:GetChildren()
  719. for i2 = 1, #c do
  720. if c[i2]:isA("Fire") then
  721. c[i2]:remove()
  722. end end end end end end
  723.  
  724. if msg:sub(1,6) == "smoke/" then
  725. local player = findplayer(msg:sub(7),speaker)
  726. if player ~= 0 then
  727. for i = 1,#player do
  728. if player[i].Character and player[i].Character.Torso then
  729. if player[i].Character.Torso:FindFirstChild("Smoke") == nil then
  730. smoke = Instance.new("Smoke")
  731. smoke.Parent = player[i].Character.Torso
  732. smoke.Color = Color3.new(math.random(),math.random(),math.random()) --I wonder if I could've done something like 'Color3.Random()'
  733. end end end end end
  734.  
  735. if msg:sub(1,8) == "unsmoke/" then
  736. local player = findplayer(msg:sub(9),speaker)
  737. if player ~= 0 then
  738. for i = 1,#player do
  739. if player[i].Character and player[i].Character.Torso then
  740. local c = player[i].Character.Torso:GetChildren()
  741. for i2 = 1, #c do
  742. if c[i2]:isA("Smoke") then
  743. c[i2]:remove()
  744. end end end end end end
  745.  
  746. if msg:sub(1,6) == "color/" then
  747. local slash = msg:sub(7):find("/")+6
  748. if slash then
  749. local player = findplayer(msg:sub(7, slash-1),speaker)
  750. color = msg:sub(slash+1)
  751. color = color:upper(color:sub(1,1)) .. color:sub(2)
  752. if player ~= 0 and color then
  753. for i = 1,#player do
  754. if player[i].Character then
  755. thecolor = BrickColor.new(color)
  756. if thecolor ~= nil then
  757. if player[i].Character.Shirt ~= nil then
  758. player[i].Character.Shirt:remove()
  759. end
  760. if player[i].Character.Pants then
  761. player[i].Character.Pants:remove()
  762. end
  763. c = player[i].Character:GetChildren()
  764. for i2 = 1,#c do
  765. if c[i2]:isA("Part") then
  766. c[i2].BrickColor = thecolor
  767. end end end end end end end end
  768.  
  769. if msg:sub(1,15) == "advancedbtools/" then
  770. local player = findplayer(msg:sub(16),speaker)
  771. if player ~= 0 then
  772. local insert = game:GetService("InsertService")
  773. for i = 1,#player do
  774. local paintbrush = insert:LoadAsset(34842883)
  775. paintbrush:MakeJoints()
  776. paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player.
  777. paintbrush:remove() --Remove the model that held the tool.
  778.  
  779. local material = insert:LoadAsset(34842844)
  780. material:MakeJoints()
  781. material.Material.Parent = player[i].Backpack
  782. material:remove()
  783.  
  784. local resize = insert:LoadAsset(34842919)
  785. resize:MakeJoints()
  786. resize["Resize Tool"].Parent = player[i].Backpack
  787. resize:remove()
  788.  
  789. local delete = Instance.new("HopperBin")
  790. delete.BinType = "Hammer"
  791. delete.Parent = player[i].Backpack
  792.  
  793. local grab = Instance.new("HopperBin")
  794. grab.BinType = "GameTool"
  795. grab.Parent = player[i].Backpack
  796.  
  797. local copy = Instance.new("HopperBin")
  798. copy.BinType = "Clone"
  799. copy.Parent = player[i].Backpack
  800.  
  801. local extra = insert:LoadAsset(35012404)
  802. extra:MakeJoints()
  803. extra["Build Tools"].Parent = player[i].Backpack
  804. end end
  805. elseif msg:sub(1,4) == "abt/" then
  806. local player = findplayer(msg:sub(5),speaker)
  807. if player ~= 0 then
  808. local insert = game:GetService("InsertService")
  809. for i = 1,#player do
  810. local paintbrush = insert:LoadAsset(34842883)
  811. paintbrush:MakeJoints()
  812. paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player.
  813. paintbrush:remove() --Remove the model that held the tool.
  814.  
  815. local material = insert:LoadAsset(34842844)
  816. material:MakeJoints()
  817. material.Material.Parent = player[i].Backpack
  818. material:remove()
  819.  
  820. local resize = insert:LoadAsset(34842919)
  821. resize:MakeJoints()
  822. resize["Resize Tool"].Parent = player[i].Backpack
  823. resize:remove()
  824.  
  825. local delete = Instance.new("HopperBin")
  826. delete.BinType = "Hammer"
  827. delete.Parent = player[i].Backpack
  828.  
  829. local grab = Instance.new("HopperBin")
  830. grab.BinType = "GameTool"
  831. grab.Parent = player[i].Backpack
  832.  
  833. local copy = Instance.new("HopperBin")
  834. copy.BinType = "Clone"
  835. copy.Parent = player[i].Backpack
  836.  
  837. local extra = insert:LoadAsset(35012404)
  838. extra:MakeJoints()
  839. extra["Build Tools"].Parent = player[i].Backpack
  840. end end end
  841.  
  842. if msg:sub(1,7) == "insert/" then
  843. local player = findplayer(msg:sub(8),speaker)
  844. if player ~= 0 then
  845. for i = 1,#player do
  846. local insert = game:GetService("InsertService"):LoadAsset(34842829)
  847. insert:MakeJoints()
  848. insert["Insert"].Parent = player[i].Backpack
  849. insert:remove()
  850. end end end
  851.  
  852. if msg:sub(1,9) == "noinsert/" then
  853. local player = findplayer(msg:sub(10),speaker)
  854. if player ~= 0 then
  855. for i = 1,#player do
  856. local insert = player[i].Backpack:FindFirstChild("Insert")
  857. if insert then
  858. insert:remove()
  859. end
  860. local bpinsert = player[i].Character:FindFirstChild("Insert")
  861. if bpinsert ~= nil and bpinsert:isA("Tool") then
  862. bpinsert:remove()
  863. end
  864. end end end
  865.  
  866. if msg:sub(1,13) == "resetambient/" then
  867. game.Lighting.Ambient = Color3.new(1,1,1)
  868. end
  869.  
  870. if msg:sub(1,14) == "randomambient/" then
  871. game.Lighting.Ambient = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  872. end
  873.  
  874. if msg:sub(1,11) == "getambient/" then
  875. m = Instance.new("Message",speaker)
  876. m.Text = tostring(game.Lighting.Ambient)
  877. wait(3)
  878. m:remove()
  879. end
  880.  
  881. if msg:sub(1,14) == "platformstand/" then
  882. local player = findplayer(msg:sub(15),speaker)
  883. if player ~= 0 then
  884. for i = 1,#player do
  885. if player[i].Character then
  886. player[i].Character.Humanoid.PlatformStand = true
  887. end end end end
  888.  
  889. if msg:sub(1,16) == "unplatformstand/" then
  890. local player = findplayer(msg:sub(17),speaker)
  891. if player ~= 0 then
  892. for i = 1,#player do
  893. if player[i].Character then
  894. player[i].Character.Humanoid.PlatformStand = false
  895. end end end end
  896.  
  897. if msg:sub(1,8) == "cframe1/" then
  898. local player = findplayer(msg:sub(9),speaker)
  899. if player ~= 0 then
  900. for i = 1,#player do
  901. local cframe = game:GetService("InsertService"):LoadAsset(34879005)
  902. cframe:MakeJoints()
  903. cframe["All New Edit Cframe"].Parent = player[i].Backpack
  904. cframe:remove()
  905. end end end
  906.  
  907. if msg:sub(1,8) == "cframe2/" then
  908. local player = findplayer(msg:sub(9),speaker)
  909. if player ~= 0 then
  910. for i = 1,#player do
  911. local cframe = game:GetService("InsertService"):LoadAsset(35145017)
  912. cframe:MakeJoints()
  913. cframe["CFrame"].Parent = player[i].Backpack
  914. cframe:remove()
  915. end end end
  916.  
  917. if msg:sub(1,11) == "skateboard/" then
  918. local player = findplayer(msg:sub(12),speaker)
  919. if player ~= 0 then
  920. for i = 1,#player do
  921. local board = game:GetService("InsertService"):LoadAsset(34879053)
  922. board:MakeJoints()
  923. board["SkateTool"].Parent = player[i].Backpack
  924. board:remove()
  925. end end end
  926.  
  927. if msg:sub(1,11) == "appearance/" then
  928. local slash = msg:sub(12):find("/")+11
  929. if slash then
  930. local player = findplayer(msg:sub(12,slash-1),speaker)
  931. if player ~= 0 then
  932. local id = msg:sub(slash+1)
  933. if id then
  934. for i = 1,#player do
  935. player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. id .."&placeId=0"
  936. player[i].Character.Humanoid.Health = 0
  937. end end end end end
  938.  
  939. if string.sub(msg,1,6) == "wedge/" then --Credit to Person299 for the base of this command...
  940. local danumber1 = nil
  941. local danumber2 = nil
  942. for i = 7,100 do
  943. if string.sub(msg,i,i) == "/" then
  944. danumber1 = i
  945. break
  946. elseif string.sub(msg,i,i) == "" then
  947. break
  948. end end
  949. if danumber1 == nil then return end
  950. for i =danumber1 + 1,danumber1 + 100 do
  951. if string.sub(msg,i,i) == "/" then
  952. danumber2 = i
  953. break
  954. elseif string.sub(msg,i,i) == "" then
  955. break
  956. end end
  957. if danumber2 == nil then return end
  958. if speaker.Character ~= nil then
  959. local head = speaker.Character:FindFirstChild("Head")
  960. if head ~= nil then
  961. local part = Instance.new("WedgePart")
  962. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  963. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  964. part.Name = "Person299's Admin Command Script V2 Part thingy"
  965. part.Parent = game.Workspace
  966. end end end
  967.  
  968. if string.sub(msg,1,9) == "cylinder/" then --Credit to Person299 for the base of this command...
  969. local danumber1 = nil
  970. local danumber2 = nil
  971. for i = 10,100 do
  972. if string.sub(msg,i,i) == "/" then
  973. danumber1 = i
  974. break
  975. elseif string.sub(msg,i,i) == "" then
  976. break
  977. end end
  978. if danumber1 == nil then return end
  979. for i =danumber1 + 1,danumber1 + 100 do
  980. if string.sub(msg,i,i) == "/" then
  981. danumber2 = i
  982. break
  983. elseif string.sub(msg,i,i) == "" then
  984. break
  985. end end
  986. if danumber2 == nil then return end
  987. if speaker.Character ~= nil then
  988. local head = speaker.Character:FindFirstChild("Head")
  989. if head ~= nil then
  990. local part = Instance.new("Part")
  991. part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  992. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  993. part.Name = "Person299's Admin Command Script V2 Part thingy"
  994. local cyl = Instance.new("CylinderMesh",part)
  995. part.Parent = game.Workspace
  996. end end end
  997.  
  998. if string.sub(msg,1,6) == "block/" then --Credit to Person299 for the base of this command...
  999. local danumber1 = nil
  1000. local danumber2 = nil
  1001. for i = 7,100 do
  1002. if string.sub(msg,i,i) == "/" then
  1003. danumber1 = i
  1004. break
  1005. elseif string.sub(msg,i,i) == "" then
  1006. break
  1007. end end
  1008. if danumber1 == nil then return end
  1009. for i =danumber1 + 1,danumber1 + 100 do
  1010. if string.sub(msg,i,i) == "/" then
  1011. danumber2 = i
  1012. break
  1013. elseif string.sub(msg,i,i) == "" then
  1014. break
  1015. end end
  1016. if danumber2 == nil then return end
  1017. if speaker.Character ~= nil then
  1018. local head = speaker.Character:FindFirstChild("Head")
  1019. if head ~= nil then
  1020. local part = Instance.new("Part")
  1021. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  1022. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  1023. part.Name = "Person299's Admin Command Script V2 Part thingy"
  1024. local block = Instance.new("BlockMesh",part)
  1025. part.Parent = game.Workspace
  1026. end end end
  1027.  
  1028. if string.sub(msg,1,6) == "plate/" then --Credit to Person299 for the base of this command...
  1029. local danumber1 = nil
  1030. local danumber2 = nil
  1031. for i = 7,100 do
  1032. if string.sub(msg,i,i) == "/" then
  1033. danumber1 = i
  1034. break
  1035. elseif string.sub(msg,i,i) == "" then
  1036. break
  1037. end end
  1038. if danumber1 == nil then return end
  1039. for i =danumber1 + 1,danumber1 + 100 do
  1040. if string.sub(msg,i,i) == "/" then
  1041. danumber2 = i
  1042. break
  1043. elseif string.sub(msg,i,i) == "" then
  1044. break
  1045. end end
  1046. if danumber2 == nil then return end
  1047. if speaker.Character ~= nil then
  1048. local head = speaker.Character:FindFirstChild("Head")
  1049. if head ~= nil then
  1050. local part = Instance.new("Part")
  1051. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  1052. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  1053. part.Name = "Person299's Admin Command Script V2 Part thingy"
  1054. part.formFactor = "Plate"
  1055. part.Parent = game.Workspace
  1056. end end end
  1057.  
  1058. if string.sub(msg,1,7) == "sphere/" then --Credit to Person299 for the base of this command...
  1059. local danumber1 = nil
  1060. local danumber2 = nil
  1061. for i = 8,100 do
  1062. if string.sub(msg,i,i) == "/" then
  1063. danumber1 = i
  1064. break
  1065. elseif string.sub(msg,i,i) == "" then
  1066. break
  1067. end end
  1068. if danumber1 == nil then return end
  1069. for i =danumber1 + 1,danumber1 + 100 do
  1070. if string.sub(msg,i,i) == "/" then
  1071. danumber2 = i
  1072. break
  1073. elseif string.sub(msg,i,i) == "" then
  1074. break
  1075. end end
  1076. if danumber2 == nil then return end
  1077. if speaker.Character ~= nil then
  1078. local head = speaker.Character:FindFirstChild("Head")
  1079. if head ~= nil then
  1080. local part = Instance.new("Part")
  1081. part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  1082. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  1083. part.Name = "Person299's Admin Command Script V2 Part thingy"
  1084. part.Shape = "Ball"
  1085. part.formFactor = 1
  1086. part.Parent = game.Workspace
  1087. end end end
  1088.  
  1089. if msg:sub(1,5) == "burn/" then
  1090. local player = findplayer(msg:sub(6),speaker)
  1091. if player ~= 0 then
  1092. for i = 1,#player do
  1093. createscript([[
  1094. if script.Parent.Parent then
  1095. fire = Instance.new("Fire")
  1096. fire.Parent = script.Parent
  1097. fire.Name = "Burn"
  1098. fire.Color = BrickColor.Random().Color
  1099. while fire do
  1100. script.Parent.Parent.Humanoid:TakeDamage(1)
  1101. wait(.1)
  1102. end
  1103. end]], player[i].Character.Torso)
  1104. end end end
  1105.  
  1106. if msg:sub(1,9) == "de-admin/" then
  1107. local player = findplayer(msg:sub(10),speaker)
  1108. if player ~= 0 and NOMINATE10(speaker) then
  1109. for i = 1,#player do
  1110. if player[i].Name ~= speaker.Name then
  1111. if PERSON299(player[i].Name) then
  1112. ishethere = findintable(player[i].Name,adminlist)
  1113. if ishethere then
  1114. table.remove(adminlist,ishethere)
  1115. end
  1116. local ishe = findintable(player[i].Name,namelist)
  1117. if ishe then
  1118. table.remove(namelist,ishe)
  1119. end
  1120. local isf = findintable(player[i].Name,flist)
  1121. if isf then
  1122. table.remove(flist,isf)
  1123. end end end end
  1124. foc("fix",speaker)
  1125. end end
  1126.  
  1127. if msg:sub(1,6) == "watch/" then
  1128. local player = findplayer(msg:sub(7),speaker)
  1129. if player ~= 0 then
  1130. if #player == 1 then
  1131. for i = 1,#player do
  1132. sc = script.CamScript:clone()
  1133. sc.Parent = speaker
  1134. sc["New Subject"].Value = player[i].Character.Head
  1135. sc.Disabled = false
  1136. end end end end
  1137.  
  1138. if msg:sub(1,11) == "removegear/" then
  1139. local player = findplayer(msg:sub(12),speaker)
  1140. if player ~= 0 then
  1141. for i = 1,#player do
  1142. if player[i].StarterGear then
  1143. local gear = player[i].StarterGear:GetChildren()
  1144. if #gear > 0 then
  1145. for Num,Gear in pairs(gear) do
  1146. Gear:remove()
  1147. end end end end end end
  1148.  
  1149. if msg:sub(1,10) == "savetools/" then
  1150. local player = findplayer(msg:sub(11),speaker)
  1151. if player ~= 0 then
  1152. for i = 1,#player do
  1153. if player[i].StarterGear and player[i].Backpack then
  1154. if #player[i].Backpack:GetChildren() > 0 then
  1155. for num,tool in pairs(player[i].Backpack:GetChildren()) do
  1156. tool:clone().Parent = player[i].StarterGear
  1157. end end end end end end
  1158.  
  1159. if msg:sub(1,12) == "localscript/" then
  1160. if msg:sub(13) then
  1161. local slash = msg:sub(13):find("/")+12
  1162. if slash then
  1163. local sourcE = msg:sub(slash+1)
  1164. if sourcE then
  1165. local player = findplayer(msg:sub(13,slash-1),speaker)
  1166. if player ~= 0 then
  1167. for i = 1,#player do
  1168. localscript(sourcE,player[i])
  1169. end end end end end end
  1170.  
  1171. if msg:sub(1,8) == "getgear/" then
  1172. local player = findplayer(msg:sub(9),speaker)
  1173. if player ~= 0 then
  1174. for i = 1,#player do
  1175. if player[i].StarterGear and speaker.Backpack then
  1176. for i,v in pairs(player[i].StarterGear:GetChildren()) do
  1177. v:clone().Parent = speaker.Backpack
  1178. end end end end end
  1179.  
  1180. if msg:sub(1,5) == "team/" then
  1181. local slash = msg:sub(6):find("/")+5
  1182. if slash then
  1183. local team = upmsg:sub(6,slash-1)
  1184. if team then
  1185. local color = upmsg:sub(slash+1)
  1186. local bcolor = BrickColor.new(color)
  1187. if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end
  1188. Team = Instance.new("Team",game:GetService("Teams"))
  1189. Team.Name = team
  1190. Team.TeamColor = bcolor
  1191. end end end
  1192.  
  1193. if msg:sub(1,11) == "changeteam/" then
  1194. local slash = msg:sub(12):find("/")+11
  1195. if slash then
  1196. local player = findplayer(msg:sub(12,slash-1),speaker)
  1197. if player ~= 0 then
  1198. local team = findteam(msg:sub(slash+1),speaker)
  1199. if team then
  1200. for i = 1,#player do
  1201. player[i].Neutral = false
  1202. player[i].TeamColor = team.TeamColor
  1203. end end end end end
  1204.  
  1205. if msg == "setupteams/" then
  1206. local Teams = game:GetService("Teams")
  1207. TeamChild = Teams:GetChildren()
  1208. if #TeamChild > 0 then
  1209. for i,v in pairs(TeamChild) do
  1210. v:remove()
  1211. end
  1212. end
  1213. local Unassinged = Instance.new("Team",Teams)
  1214. Unassigned.TeamColor = BrickColor.new("Really black")
  1215. Unassigned.Name = "Unassigned"
  1216. for i,v in pairs(game.Players:GetPlayers()) do
  1217. v.Neutral = false
  1218. v.TeamColor = BrickColor.new("Really black")
  1219. end
  1220. end
  1221.  
  1222. if msg:sub(1,11) == "removeteam/" then
  1223. local Teams = game:GetService("Teams")
  1224. assignTeam = {}
  1225. local team = findteam(msg:sub(12),speaker)
  1226. if team then
  1227. for i,v in pairs(game.Players:GetPlayers()) do
  1228. if v.TeamColor == team.TeamColor then
  1229. table.insert(assignTeam,v)
  1230. end
  1231. end
  1232. team:remove()
  1233. if #assignTeam > 0 then
  1234. if not Teams:FindFirstChild("Unassigned") then
  1235. Unassinged = Instance.new("Team",Teams)
  1236. Unassigned.TeamColor = BrickColor.new("Really black")
  1237. Unassigned.Name = "Unassigned"
  1238. else Unassigned = Teams.Unassigned end
  1239. for i,v in pairs(assignTeam) do
  1240. v.TeamColor = Unassigned.TeamColor
  1241. end end end end
  1242.  
  1243. --AND NOW HERE ARE THE NORMAL COMMANDS MADE BY PERSON299
  1244. if string.sub(msg,1,5) == "give/" then
  1245. local danumber1 = nil
  1246. for i = 6,100 do
  1247. if string.sub(msg,i,i) == "/" then
  1248. danumber1 = i
  1249. break
  1250. elseif string.sub(msg,i,i) == "" then
  1251. break
  1252. end end
  1253. if danumber1 == nil then return end
  1254. local it = nil
  1255. local all = true
  1256. if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
  1257. all = false
  1258. local itnum = 0
  1259. local c = tools:GetChildren()
  1260. for i2 = 1,#c do
  1261. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
  1262. it = c[i2]
  1263. itnum = itnum + 1
  1264. end end
  1265. if itnum ~= 1 then return end
  1266. else
  1267. all = true
  1268. end
  1269. local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
  1270. if player ~= 0 then
  1271. for i = 1,#player do
  1272. local bp = player[i]:FindFirstChild("Backpack")
  1273. if bp ~= nil then
  1274. if all == false then
  1275. it:clone().Parent = bp
  1276. else
  1277. local c = tools:GetChildren()
  1278. for i2 = 1,#c do
  1279. c[i2]:clone().Parent = bp
  1280. end end end end end end
  1281.  
  1282. --Bored...
  1283.  
  1284. if string.sub(msg,1,7) == "change/" then
  1285. local danumber1 = nil
  1286. local danumber2 = nil
  1287. for i = 8,100 do
  1288. if string.sub(msg,i,i) == "/" then
  1289. danumber1 = i
  1290. break
  1291. elseif string.sub(msg,i,i) == "" then
  1292. break
  1293. end end
  1294. if danumber1 == nil then return end
  1295. for i =danumber1 + 1,danumber1 + 100 do
  1296. if string.sub(msg,i,i) == "/" then
  1297. danumber2 = i
  1298. break
  1299. elseif string.sub(msg,i,i) == "" then
  1300. break
  1301. end end
  1302. if danumber2 == nil then return end
  1303. local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
  1304. if player ~= 0 then
  1305. for i = 1,#player do
  1306. local ls = player[i]:FindFirstChild("leaderstats")
  1307. if ls ~= nil then
  1308. local it = nil
  1309. local itnum = 0
  1310. local c = ls:GetChildren()
  1311. for i2 = 1,#c do
  1312. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
  1313. it = c[i2]
  1314. itnum = itnum + 1
  1315. end end
  1316. if itnum == 1 then
  1317. it.Value = string.sub(msg,danumber2 + 1)
  1318. end end end end end
  1319.  
  1320. if string.sub(msg,1,6) == "ungod/" then
  1321. local player = findplayer(string.sub(msg,7),speaker)
  1322. if player ~= 0 then
  1323. for i = 1,#player do
  1324. if player[i].Character ~= nil then
  1325. local isgod = false
  1326. local c = player[i].Character:GetChildren()
  1327. for i=1,#c do
  1328. if c[i].className == "Script" then
  1329. if c[i]:FindFirstChild("Context") then
  1330. if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
  1331. c[i]:remove()
  1332. isgod = true
  1333. end end end end
  1334. if isgod == true then
  1335. local c = player[i].Character:GetChildren()
  1336. for i=1,#c do
  1337. if c[i].className == "Part" then
  1338. c[i].Reflectance = 0
  1339. end
  1340. if c[i].className == "Humanoid" then
  1341. c[i].MaxHealth = 100
  1342. c[i].Health = 100
  1343. end
  1344. if c[i].Name == "God FF" then
  1345. c[i]:remove()
  1346. end end end end end end end
  1347.  
  1348. if string.sub(msg,1,4) == "god/" then
  1349. local player = findplayer(string.sub(msg,5),speaker)
  1350. if player ~= 0 then
  1351. for i = 1,#player do
  1352. if player[i].Character ~= nil then
  1353. if player[i].Character:FindFirstChild("God FF") == nil then
  1354. createscript([[script.Parent.Humanoid.MaxHealth = 999999
  1355. script.Parent.Humanoid.Health = 999999
  1356. ff = Instance.new("ForceField")
  1357. ff.Name = "God FF"
  1358. ff.Parent = script.Parent
  1359. function ot(hit)
  1360. if hit.Parent ~= script.Parent then
  1361. h = hit.Parent:FindFirstChild("Humanoid")
  1362. if h ~= nil then
  1363. h.Health = 0
  1364. end
  1365. h = hit.Parent:FindFirstChild("Zombie")
  1366. if h ~= nil then
  1367. h.Health = 0
  1368. end end end
  1369. c = script.Parent:GetChildren()
  1370. for i=1,#c do
  1371. if c[i].className == "Part" then
  1372. c[i].Touched:connect(ot)
  1373. c[i].Reflectance = 1
  1374. end end]],player[i].Character)
  1375. end end end end end
  1376.  
  1377. if string.sub(msg,1,7) == "punish/" then
  1378. local player = findplayer(string.sub(msg,8),speaker)
  1379. if player ~= 0 then
  1380. for i = 1,#player do
  1381. if player[i].Character ~= nil then
  1382. player[i].Character.Parent = game.Lighting
  1383. end end end end
  1384.  
  1385. if string.sub(msg,1,9) == "unpunish/" then
  1386. local player = findplayer(string.sub(msg,10),speaker)
  1387. if player ~= 0 then
  1388. for i = 1,#player do
  1389. if player[i].Character ~= nil then
  1390. player[i].Character.Parent = game.Workspace
  1391. player[i].Character:MakeJoints()
  1392. end end end end
  1393.  
  1394. if string.sub(msg,1,3) == "ff/" then
  1395. local player = findplayer(string.sub(msg,4),speaker)
  1396. if player ~= 0 then
  1397. for i = 1,#player do
  1398. if player[i].Character ~= nil then
  1399. local ff = Instance.new("ForceField")
  1400. ff.Parent = player[i].Character
  1401. end end end end
  1402.  
  1403. if string.sub(msg,1,5) == "unff/" then
  1404. local player = findplayer(string.sub(msg,6),speaker)
  1405. if player ~= 0 then
  1406. for i = 1,#player do
  1407. if player[i].Character ~= nil then
  1408. local c = player[i].Character:GetChildren()
  1409. for i2 = 1,#c do
  1410. if c[i2].className == "ForceField" then
  1411. c[i2]:remove()
  1412. end end end end end end
  1413.  
  1414. if string.sub(msg,1,9) == "sparkles/" then
  1415. local player = findplayer(string.sub(msg,10),speaker)
  1416. if player ~= 0 then
  1417. for i = 1,#player do
  1418. if player[i].Character ~= nil then
  1419. local torso = player[i].Character:FindFirstChild("Torso")
  1420. if torso ~= nil then
  1421. local sparkles = Instance.new("Sparkles")
  1422. sparkles.Color = Color3.new(math.random(),math.random(),math.random())
  1423. sparkles.Parent = torso
  1424. end end end end end
  1425.  
  1426. if string.sub(msg,1,11) == "unsparkles/" then
  1427. local player = findplayer(string.sub(msg,12),speaker)
  1428. if player ~= 0 then
  1429. for i = 1,#player do
  1430. if player[i].Character ~= nil then
  1431. local torso = player[i].Character:FindFirstChild("Torso")
  1432. if torso ~= nil then
  1433. local c = torso:GetChildren()
  1434. for i2 = 1,#c do
  1435. if c[i2].className == "Sparkles" then
  1436. c[i2]:remove()
  1437. end end end end end end end
  1438.  
  1439. if string.sub(msg,1,6) == "admin/" then
  1440. if not disableAdmin then
  1441. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  1442. if imgettingtiredofmakingthisstupidscript == true then
  1443. local player = findplayer(string.sub(msg,7),speaker)
  1444. if player ~= 0 then
  1445. for i = 1,#player do
  1446. for i2 =1,#namelist do
  1447. if namelist[i2] == player[i].Name then
  1448. variablelist[i2]:disconnect()
  1449. flist[i2]:disconnect()
  1450. table.remove(variablelist,i2)
  1451. table.remove(flist,i2)
  1452. table.remove(namelist,i2)
  1453. end end
  1454. local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
  1455. table.insert(namelist,player[i].Name)
  1456. table.insert(variablelist,tfv)
  1457. local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
  1458. table.insert(flist,tfv)
  1459. end end end end end
  1460.  
  1461. if string.sub(msg,1,8) == "unadmin/" then
  1462. if not disableAdmin then
  1463. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  1464. if imgettingtiredofmakingthisstupidscript == true then
  1465. local player = findplayer(string.sub(msg,9),speaker)
  1466. if player ~= 0 then
  1467. for i = 1,#player do
  1468. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  1469. if imgettingtiredofmakingthisstupidscript == false then
  1470. for i2 =1,#namelist do
  1471. if namelist[i2] == player[i].Name then
  1472. variablelist[i2]:disconnect()
  1473. table.remove(variablelist,i2)
  1474. flist[i2]:disconnect()
  1475. table.remove(flist,i2)
  1476. table.remove(namelist,i2)
  1477. end end end end end end end end
  1478.  
  1479. if string.sub(msg,1,5) == "heal/" then
  1480. local player = findplayer(string.sub(msg,6),speaker)
  1481. if player ~= 0 then
  1482. for i = 1,#player do
  1483. if player[i].Character ~= nil then
  1484. local human = player[i].Character:FindFirstChild("Humanoid")
  1485. if human ~= nil then
  1486. human.Health = human.MaxHealth
  1487. end end end end end
  1488.  
  1489. if string.sub(msg,1,4) == "sit/" then
  1490. local player = findplayer(string.sub(msg,5),speaker)
  1491. if player ~= 0 then
  1492. for i = 1,#player do
  1493. if player[i].Character ~= nil then
  1494. local human = player[i].Character:FindFirstChild("Humanoid")
  1495. if human ~= nil then
  1496. human.Sit = true
  1497. end end end end end
  1498.  
  1499. if string.sub(msg,1,5) == "jump/" then
  1500. local player = findplayer(string.sub(msg,6),speaker)
  1501. if player ~= 0 then
  1502. for i = 1,#player do
  1503. if player[i].Character ~= nil then
  1504. local human = player[i].Character:FindFirstChild("Humanoid")
  1505. if human ~= nil then
  1506. human.Jump = true
  1507. end end end end end
  1508.  
  1509. if string.sub(msg,1,6) == "stand/" then
  1510. local player = findplayer(string.sub(msg,7),speaker)
  1511. if player ~= 0 then
  1512. for i = 1,#player do
  1513. if player[i].Character ~= nil then
  1514. local human = player[i].Character:FindFirstChild("Humanoid")
  1515. if human ~= nil then
  1516. human.Sit = false
  1517. end end end end end
  1518.  
  1519. if string.sub(msg,1,5) == "jail/" then
  1520. local player = findplayer(string.sub(msg,6),speaker)
  1521. if player ~= 0 then
  1522. for i = 1,#player do
  1523. if player[i].Character ~= nil then
  1524. local torso = player[i].Character:FindFirstChild("Torso")
  1525. if torso ~= nil then
  1526. local ack = Instance.new("Model")
  1527. ack.Name = "Jail" .. player[i].Name
  1528. icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
  1529. ack.Parent = game.Workspace
  1530. ack:MoveTo(torso.Position)
  1531. end end end end end
  1532.  
  1533. if string.sub(msg,1,7) == "unjail/" then
  1534. local player = findplayer(string.sub(msg,8),speaker)
  1535. if player ~= 0 then
  1536. for i = 1,#player do
  1537. local c = game.Workspace:GetChildren()
  1538. for i2 =1,#c do
  1539. if string.sub(c[i2].Name,1,4) == "Jail" then
  1540. if string.sub(c[i2].Name,5) == player[i].Name then
  1541. c[i2]:remove()
  1542. end end end end end end
  1543.  
  1544. if string.sub(msg,1,12) == "removetools/" then
  1545. local player = findplayer(string.sub(msg,13),speaker)
  1546. if player ~= 0 then
  1547. for i = 1,#player do
  1548. local c = player[i].Backpack:GetChildren()
  1549. for i =1,#c do
  1550. c[i]:remove()
  1551. end end end end
  1552.  
  1553. if string.sub(msg,1,10) == "givetools/" then
  1554. local player = findplayer(string.sub(msg,11),speaker)
  1555. if player ~= 0 then
  1556. for i = 1,#player do
  1557. local c = game.StarterPack:GetChildren()
  1558. for i =1,#c do
  1559. c[i]:clone().Parent = player[i].Backpack
  1560. end end end end
  1561.  
  1562. if string.sub(msg,1,11) == "givebtools/" then
  1563. local player = findplayer(string.sub(msg,12),speaker)
  1564. if player ~= 0 then
  1565. for i = 1,#player do
  1566. local a = Instance.new("HopperBin")
  1567. a.BinType = "GameTool"
  1568. a.Parent = player[i].Backpack
  1569. local a = Instance.new("HopperBin")
  1570. a.BinType = "Clone"
  1571. a.Parent = player[i].Backpack
  1572. local a = Instance.new("HopperBin")
  1573. a.BinType = "Hammer"
  1574. a.Parent = player[i].Backpack
  1575. end end end
  1576.  
  1577. if string.sub(msg,1,9) == "unshield/" then
  1578. local player = findplayer(string.sub(msg,10),speaker)
  1579. if player ~= 0 then
  1580. for i = 1,#player do
  1581. if player[i].Character ~= nil then
  1582. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  1583. if shield ~= nil then
  1584. shield:remove()
  1585. end end end end end
  1586.  
  1587. if string.sub(msg,1,7) == "shield/" then
  1588. local player = findplayer(string.sub(msg,8),speaker)
  1589. if player ~= 0 then
  1590. for i = 1,#player do
  1591. if player[i].Character ~= nil then
  1592. local torso = player[i].Character:FindFirstChild("Torso")
  1593. if torso ~= nil then
  1594. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  1595. local ball = Instance.new("Part")
  1596. ball.Size = Vector3.new(10,10,10)
  1597. ball.BrickColor = BrickColor.new(1)
  1598. ball.Transparency = 0.5
  1599. ball.CFrame = torso.CFrame
  1600. ball.TopSurface = "Smooth"
  1601. ball.BottomSurface = "Smooth"
  1602. ball.CanCollide = false
  1603. ball.Name = "Weird Ball Thingy"
  1604. ball.Reflectance = 0.2
  1605. local sm = Instance.new("SpecialMesh")
  1606. sm.MeshType = "Sphere"
  1607. sm.Parent = ball
  1608. ball.Parent = player[i].Character
  1609. createscript([[
  1610. function ot(hit)
  1611. if hit.Parent ~= nil then
  1612. if hit.Parent ~= script.Parent.Parent then
  1613. if hit.Anchored == false then
  1614. hit:BreakJoints()
  1615. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  1616. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
  1617. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  1618. end end end end
  1619. script.Parent.Touched:connect(ot) ]], ball)
  1620. local bf = Instance.new("BodyForce")
  1621. bf.force = Vector3.new(0,5e+004,0)
  1622. bf.Parent = ball
  1623. local w = Instance.new("Weld")
  1624. w.Part1 = torso
  1625. w.Part0 = ball
  1626. ball.Shape = 0
  1627. w.Parent = torso
  1628. end end end end end end
  1629.  
  1630. if string.sub(msg,1,11) == "unloopkill/" then
  1631. local player = findplayer(string.sub(msg,12),speaker)
  1632. if player ~= 0 then
  1633. for i = 1,#player do
  1634. local c = game.Workspace:GetChildren()
  1635. for i2 =1,#c do
  1636. local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
  1637. if it ~= nil then
  1638. if it.Value == player[i] then
  1639. c[i2]:remove()
  1640. end end end end end end
  1641.  
  1642. if string.sub(msg,1,9) == "loopkill/" then
  1643. local player = findplayer(string.sub(msg,10),speaker)
  1644. if player ~= 0 then
  1645. for i = 1,#player do
  1646. local s = Instance.new("Script")
  1647. createscript( [[name = "]] .. player[i].Name .. [["
  1648. ov = Instance.new("ObjectValue")
  1649. ov.Value = game.Players:FindFirstChild(name)
  1650. ov.Name = "elplayerioloopkillioperson299io"
  1651. ov.Parent = script
  1652. player = ov.Value
  1653. function oa(object)
  1654. local elplayer = game.Players:playerFromCharacter(object)
  1655. if elplayer ~= nil then
  1656. if elplayer == player then
  1657. local humanoid = object:FindFirstChild("Humanoid")
  1658. if humanoid ~= nil then
  1659. humanoid.Health = 0
  1660. end end end end
  1661. game.Workspace.ChildAdded:connect(oa)
  1662. ]],game.Workspace)
  1663. if player[i].Character ~= nil then
  1664. local human = player[i].Character:FindFirstChild("Humanoid")
  1665. if human ~= nil then
  1666. human.Health = 0
  1667. end end end end end
  1668.  
  1669. if string.lower(msg) == "shutdown" then
  1670. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  1671. if imgettingtiredofmakingthisstupidscript == true then
  1672. game:GetService("PhysicsService"):remove()
  1673. end end
  1674.  
  1675. if string.sub(msg,1,5) == "time/" then
  1676. game.Lighting.TimeOfDay = string.sub(msg,6)
  1677. end
  1678.  
  1679. if msg == "commands" then
  1680. local text = string.rep(" ",40)
  1681. text = text .. [[\\COMMANDS BY NOMINATE10: fire/nominate10, unfire/nominate10, smoke/nominate10, unsmoke/nominate10, advancedbtools/nominate10, insert/nominate10, noinsert/nominate10 resetambient/, randomambient/, getambient/, platformstand/nominate10, unplatformstand/nominate10, cframe1/nominate10, cframe2/nominate10 skateboard/nominate10, wedge/4/1/2, cylinder/4/1/2, appearance/nominate10/416314, block/4/1/2, plate/4/1/2, sphere/4/4/4, burn/nominate10, watch/nominate10, removegear/nominate10, savetools/nominate10, localscript/nominate10/[source], setupteams/, team/Bloxxers/Bright blue, removeteam/Bloxxers, changeteam/nominate10/Bloxxers \\ COMMANDS BY PERSON299: fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clearscripts, clearbricks Credit to Person299 and Nominate10 for this admin command script.]]
  1682. local mes = Instance.new("Message")
  1683. mes.Parent = speaker
  1684. local acko = 0
  1685. while true do
  1686. acko = acko + 1
  1687. if string.sub(text,acko,acko) == "" then
  1688. mes:remove()
  1689. return
  1690. elseif mes.Parent == nil then
  1691. return
  1692. end
  1693. mes.Text = string.sub(text,acko,acko + 40)
  1694. wait(0.07)
  1695. end end
  1696.  
  1697. if msg == "tools" then
  1698. local text = string.rep(" ",40)
  1699. local c = tools:GetChildren()
  1700. if #c == 0 then
  1701. text = text .. "No tools available."
  1702. else
  1703. for i =1,#c do
  1704. if i ~= 1 then
  1705. text = text .. ", "
  1706. end
  1707. text = text .. c[i].Name
  1708. end end
  1709. local mes = Instance.new("Message")
  1710. mes.Parent = speaker
  1711. local acko = 0
  1712. while true do
  1713. acko = acko + 1
  1714. if string.sub(text,acko,acko) == "" then
  1715. mes:remove()
  1716. return
  1717. elseif mes.Parent == nil then
  1718. return
  1719. end
  1720. mes.Text = string.sub(text,acko,acko + 40)
  1721. wait(0.1)
  1722. end end
  1723.  
  1724. if msg == "bannedlist" then
  1725. local text = string.rep(" ",40)
  1726. if #bannedlist == 0 then
  1727. text = text .. "The banned list is empty."
  1728. else
  1729. for i =1,#bannedlist do
  1730. if i ~= 1 then
  1731. text = text .. ", "
  1732. end
  1733. text = text .. bannedlist[i]
  1734. end end
  1735. local mes = Instance.new("Message")
  1736. mes.Parent = speaker
  1737. local acko = 0
  1738. while true do
  1739. acko = acko + 1
  1740. if string.sub(text,acko,acko) == "" then
  1741. mes:remove()
  1742. return
  1743. elseif mes.Parent == nil then
  1744. return
  1745. end
  1746. mes.Text = string.sub(text,acko,acko + 40)
  1747. wait(0.1)
  1748. end end
  1749.  
  1750. if msg == "adminlist" then
  1751. local text = string.rep(" ",40)
  1752. if #adminlist == 0 then--How would that be possible in this situation anyway? lol
  1753. text = text .. "The admin list is empty."
  1754. else
  1755. for i =1,#adminlist do
  1756. if adminlist[i] == eloname then
  1757. if youcaughtme == 1 then
  1758. if i ~= 1 then
  1759. text = text .. ", "
  1760. end
  1761. text = text .. adminlist[i]
  1762. end
  1763. else
  1764. if i ~= 1 then
  1765. text = text .. ", "
  1766. end
  1767. text = text .. adminlist[i]
  1768. end end end
  1769. local mes = Instance.new("Message")
  1770. mes.Parent = speaker
  1771. local acko = 0
  1772. while true do
  1773. acko = acko + 1
  1774. if string.sub(text,acko,acko) == "" then
  1775. mes:remove()
  1776. return
  1777. elseif mes.Parent == nil then
  1778. return
  1779. end
  1780. mes.Text = string.sub(text,acko,acko + 40)
  1781. wait(0.1)
  1782. end end
  1783.  
  1784. if string.sub(msg,1,11) == "maxplayers/" then
  1785. local pie = game.Players.MaxPlayers
  1786. game.Players.MaxPlayers = string.sub(msg,12)
  1787. if game.Players.MaxPlayers == 0 then
  1788. game.Players.MaxPlayers = pie
  1789. end end
  1790.  
  1791. if string.sub(msg,1,8) == "zombify/" then
  1792. local player = findplayer(string.sub(msg,9),speaker)
  1793. if player ~= 0 then
  1794. for i = 1,#player do
  1795. if player[i].Character ~= nil then
  1796. local torso = player[i].Character:FindFirstChild("Torso")
  1797. if torso ~= nil then
  1798. local arm = player[i].Character:FindFirstChild("Left Arm")
  1799. if arm ~= nil then
  1800. arm:remove()
  1801. end
  1802. local arm = player[i].Character:FindFirstChild("Right Arm")
  1803. if arm ~= nil then
  1804. arm:remove()
  1805. end
  1806. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1807. local zarm = Instance.new("Part")
  1808. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1809. zarm.Locked = true
  1810. zarm.formFactor = "Symmetric"
  1811. zarm.Size = Vector3.new(2,1,1)
  1812. zarm.TopSurface = "Smooth"
  1813. zarm.BottomSurface = "Smooth"
  1814. --Credit for the infectontouch script goes to whoever it is that made it.
  1815. createscript( [[
  1816. wait(1)
  1817. function onTouched(part)
  1818. if part.Parent ~= nil then
  1819. local h = part.Parent:findFirstChild("Humanoid")
  1820. if h~=nil then
  1821. if cantouch~=0 then
  1822. if h.Parent~=script.Parent.Parent then
  1823. if h.Parent:findFirstChild("zarm")~=nil then return end
  1824. cantouch=0
  1825. local larm=h.Parent:findFirstChild("Left Arm")
  1826. local rarm=h.Parent:findFirstChild("Right Arm")
  1827. if larm~=nil then
  1828. larm:remove()
  1829. end
  1830. if rarm~=nil then
  1831. rarm:remove()
  1832. end
  1833. local zee=script.Parent.Parent:findFirstChild("zarm")
  1834. if zee~=nil then
  1835. local zlarm=zee:clone()
  1836. local zrarm=zee:clone()
  1837. if zlarm~=nil then
  1838. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1839. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1840. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1841. zlarm.Parent=h.Parent
  1842. zrarm.Parent=h.Parent
  1843. zlarm:makeJoints()
  1844. zrarm:makeJoints()
  1845. zlarm.Anchored=false
  1846. zrarm.Anchored=false
  1847. wait(0.1)
  1848. h.Parent.Head.Color=zee.Color
  1849. else return end
  1850. end
  1851. wait(1)
  1852. cantouch=1
  1853. end
  1854. end
  1855. end
  1856. end
  1857. end
  1858. script.Parent.Touched:connect(onTouched)
  1859. ]],zarm)
  1860. zarm.Name = "zarm"
  1861. local zarm2 = zarm:clone()
  1862. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1863. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1864. zarm.Parent = player[i].Character
  1865. zarm:MakeJoints()
  1866. zarm2.Parent = player[i].Character
  1867. zarm2:MakeJoints()
  1868. local head = player[i].Character:FindFirstChild("Head")
  1869. if head ~= nil then
  1870. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1871. end end end end end end
  1872.  
  1873. if string.sub(msg,1,8) == "explode/" then
  1874. local player = findplayer(string.sub(msg,9),speaker)
  1875. if player ~= 0 then
  1876. for i = 1,#player do
  1877. if player[i].Character ~= nil then
  1878. local torso = player[i].Character:FindFirstChild("Torso")
  1879. if torso ~= nil then
  1880. local ex = Instance.new("Explosion")
  1881. ex.Position = torso.Position
  1882. ex.Parent = game.Workspace
  1883. end end end end end
  1884.  
  1885. if string.sub(msg,1,7) == "rocket/" then
  1886. local player = findplayer(string.sub(msg,8),speaker)
  1887. if player ~= 0 then
  1888. for i = 1,#player do
  1889. if player[i].Character ~= nil then
  1890. local torso = player[i].Character:FindFirstChild("Torso")
  1891. if torso ~= nil then
  1892. local r = Instance.new("Part")
  1893. r.Name = "Rocket"
  1894. r.Size = Vector3.new(1,8,1)
  1895. r.TopSurface = "Smooth"
  1896. r.BottomSurface = "Smooth"
  1897. local w = Instance.new("Weld")
  1898. w.Part1 = torso
  1899. w.Part0 = r
  1900. w.C0 = CFrame.new(0,0,-1)
  1901. local bt = Instance.new("BodyThrust")
  1902. bt.force = Vector3.new(0,5700,0)
  1903. bt.Parent = r
  1904. r.Parent = player[i].Character
  1905. w.Parent = torso
  1906. createscript([[
  1907. for i=1,120 do
  1908. local ex = Instance.new("Explosion")
  1909. ex.BlastRadius = 0
  1910. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  1911. ex.Parent = game.Workspace
  1912. wait(0.05)
  1913. end
  1914. local ex = Instance.new("Explosion")
  1915. ex.BlastRadius = 10
  1916. ex.Position = script.Parent.Position
  1917. ex.Parent = game.Workspace
  1918. script.Parent.BodyThrust:remove()
  1919. script.Parent.Parent.Humanoid.Health = 0
  1920. ]],r)
  1921. end end end end end
  1922.  
  1923. if string.sub(msg,1,8) == "ambient/" then
  1924. local danumber1 = nil
  1925. local danumber2 = nil
  1926. for i = 9,100 do
  1927. if string.sub(msg,i,i) == "/" then
  1928. danumber1 = i
  1929. break
  1930. elseif string.sub(msg,i,i) == "" then
  1931. break
  1932. end end
  1933. if danumber1 == nil then return end
  1934. for i =danumber1 + 1,danumber1 + 100 do
  1935. if string.sub(msg,i,i) == "/" then
  1936. danumber2 = i
  1937. break
  1938. elseif string.sub(msg,i,i) == "" then
  1939. break
  1940. end end
  1941. if danumber2 == nil then return end
  1942. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  1943. end
  1944.  
  1945. --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen...
  1946.  
  1947. if string.sub(msg,1,5) == "part/" then
  1948. local danumber1 = nil
  1949. local danumber2 = nil
  1950. for i = 6,100 do
  1951. if string.sub(msg,i,i) == "/" then
  1952. danumber1 = i
  1953. break
  1954. elseif string.sub(msg,i,i) == "" then
  1955. break
  1956. end end
  1957. if danumber1 == nil then return end
  1958. for i =danumber1 + 1,danumber1 + 100 do
  1959. if string.sub(msg,i,i) == "/" then
  1960. danumber2 = i
  1961. break
  1962. elseif string.sub(msg,i,i) == "" then
  1963. break
  1964. end end
  1965. if danumber2 == nil then return end
  1966. if speaker.Character ~= nil then
  1967. local head = speaker.Character:FindFirstChild("Head")
  1968. if head ~= nil then
  1969. local part = Instance.new("Part")
  1970. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  1971. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  1972. part.Name = "Person299's Admin Command Script V2 Part thingy"
  1973. part.Parent = game.Workspace
  1974. end end end
  1975.  
  1976. --I finally tried flicking it but it keeps on coming back......
  1977.  
  1978. if string.sub(msg,1,8) == "control/" then
  1979. local player = findplayer(string.sub(msg,9),speaker)
  1980. if player ~= 0 then
  1981. if #player > 1 then
  1982. return
  1983. end
  1984. for i = 1,#player do
  1985. if player[i].Character ~= nil then
  1986. speaker.Character = player[i].Character
  1987. end end end end
  1988.  
  1989. --IT WONT GO AWAY!!!!!
  1990.  
  1991. if string.sub(msg,1,5) == "trip/" then
  1992. local player = findplayer(string.sub(msg,6),speaker)
  1993. if player ~= 0 then
  1994. for i = 1,#player do
  1995. if player[i].Character ~= nil then
  1996. local torso = player[i].Character:FindFirstChild("Torso")
  1997. if torso ~= nil then
  1998. torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better.
  1999. end end end end end
  2000.  
  2001. --Yay! it finally went away! :)
  2002.  
  2003. if string.sub(msg,1,8) == "setgrav/" then
  2004. danumber = nil
  2005. for i =9,100 do
  2006. if string.sub(msg,i,i) == "/" then
  2007. danumber = i
  2008. break
  2009. end end
  2010. if danumber == nil then
  2011. return
  2012. end
  2013. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  2014. if player == 0 then
  2015. return
  2016. end
  2017. for i = 1,#player do
  2018. if player[i].Character ~= nil then
  2019. local torso = player[i].Character:FindFirstChild("Torso")
  2020. if torso ~= nil then
  2021. local bf = torso:FindFirstChild("BF")
  2022. if bf ~= nil then
  2023. bf.force = Vector3.new(0,0,0)
  2024. else
  2025. local bf = Instance.new("BodyForce")
  2026. bf.Name = "BF"
  2027. bf.force = Vector3.new(0,0,0)
  2028. bf.Parent = torso
  2029. end
  2030. local c2 = player[i].Character:GetChildren()
  2031. for i=1,#c2 do
  2032. if c2[i].className == "Part" then
  2033. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  2034. end end end end end end
  2035.  
  2036. if string.sub(msg,1,10) == "walkspeed/" then
  2037. danumber = nil
  2038. for i =11,100 do
  2039. if string.sub(msg,i,i) == "/" then
  2040. danumber = i
  2041. break
  2042. end end
  2043. if danumber == nil then
  2044. return
  2045. end
  2046. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  2047. if player == 0 then
  2048. return
  2049. end
  2050. for i = 1,#player do
  2051. if player[i].Character ~= nil then
  2052. humanoid = player[i].Character:FindFirstChild("Humanoid")
  2053. if humanoid ~= nil then
  2054. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  2055. end end end end
  2056.  
  2057. if string.sub(msg,1,7) == "damage/" then
  2058. danumber = nil
  2059. for i =8,100 do
  2060. if string.sub(msg,i,i) == "/" then
  2061. danumber = i
  2062. break
  2063. end end
  2064. if danumber == nil then
  2065. return
  2066. end
  2067. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  2068. if player == 0 then
  2069. return
  2070. end
  2071. for i = 1,#player do
  2072. if player[i].Character ~= nil then
  2073. humanoid = player[i].Character:FindFirstChild("Humanoid")
  2074. if humanoid ~= nil then
  2075. humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
  2076. end end end end
  2077.  
  2078. if string.sub(msg,1,7) == "health/" then
  2079. danumber = nil
  2080. for i =8,100 do
  2081. if string.sub(msg,i,i) == "/" then
  2082. danumber = i
  2083. break
  2084. end end
  2085. if danumber == nil then
  2086. return
  2087. end
  2088. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  2089. if player == 0 then
  2090. return
  2091. end
  2092. for i = 1,#player do
  2093. if player[i].Character ~= nil then
  2094. humanoid = player[i].Character:FindFirstChild("Humanoid")
  2095. if humanoid ~= nil then
  2096. local elnumba = Instance.new("IntValue")
  2097. elnumba.Value = string.sub(msg,danumber + 1)
  2098. if elnumba.Value > 0 then
  2099. humanoid.MaxHealth = elnumba.Value
  2100. humanoid.Health = humanoid.MaxHealth
  2101. end
  2102. elnumba:remove()
  2103. end end end end
  2104.  
  2105. --Ugh, now i have the M*A*S*H theme stuck in my head.....
  2106.  
  2107. if string.sub(msg,1,9) == "teleport/" then
  2108. danumber = nil
  2109. for i =10,100 do
  2110. if string.sub(msg,i,i) == "/" then
  2111. danumber = i
  2112. break
  2113. end end
  2114. if danumber == nil then
  2115. return
  2116. end
  2117. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  2118. if player1 == 0 then
  2119. return
  2120. end
  2121. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  2122. if player2 == 0 then
  2123. return
  2124. end
  2125. if #player2 > 1 then
  2126. return
  2127. end
  2128. torso = nil
  2129. for i =1,#player2 do
  2130. if player2[i].Character ~= nil then
  2131. torso = player2[i].Character:FindFirstChild("Torso")
  2132. end end
  2133. if torso ~= nil then
  2134. for i =1,#player1 do
  2135. if player1[i].Character ~= nil then
  2136. local torso2 = player1[i].Character:FindFirstChild("Torso")
  2137. if torso2 ~= nil then
  2138. torso2.CFrame = torso.CFrame
  2139. end end end end end
  2140.  
  2141. if string.sub(msg,1,6) == "merge/" then
  2142. danumber = nil
  2143. for i =7,100 do
  2144. if string.sub(msg,i,i) == "/" then
  2145. danumber = i
  2146. break
  2147. end end
  2148. if danumber == nil then
  2149. return
  2150. end
  2151. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  2152. if player1 == 0 then
  2153. return
  2154. end
  2155. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  2156. if player2 == 0 then
  2157. return
  2158. end
  2159. if #player2 > 1 then
  2160. return
  2161. end
  2162. for i =1,#player2 do
  2163. if player2[i].Character ~= nil then
  2164. player2 = player2[i].Character
  2165. end end
  2166. for i =1,#player1 do
  2167. player1[i].Character = player2
  2168. end end
  2169.  
  2170. if msg == "clearscripts" then
  2171. local c = game.Workspace:GetChildren()
  2172. for i =1,#c do
  2173. if c[i].className == "Script" then
  2174. if c[i]:FindFirstChild("Is A Created Script") then
  2175. c[i]:remove()
  2176. end end end
  2177. local d = game.Players:GetPlayers()
  2178. for i2 = 1,#d do
  2179. for i,v in pairs(d[i2]:GetChildren()) do
  2180. if v:isA("Script") and v:FindFirstChild("Is A Created Script") then
  2181. v:remove()
  2182. end end end
  2183. end
  2184.  
  2185. if msg == "clearbricks" then
  2186. local c = game.Workspace:GetChildren()
  2187. for i = 1,#c do
  2188. if c[i].className == "Part" or c[i].className == "WedgePart" then
  2189. if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then
  2190. c[i]:remove()
  2191. end end
  2192. if c[i].className == "Model" then
  2193. if string.sub(c[i].Name,1,4) == "Jail" then
  2194. c[i]:remove()
  2195. end end end end
  2196.  
  2197.  
  2198. if string.sub(msg,1,5) == "kick/" then
  2199. if not disableBan then
  2200. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  2201. if imgettingtiredofmakingthisstupidscript2 == true then
  2202. local player = findplayer(string.sub(msg,6),speaker)
  2203. if player ~= 0 then
  2204. for i = 1,#player do
  2205. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  2206. if imgettingtiredofmakingthisstupidscript == false then
  2207. if player[i].Name ~= eloname then
  2208. player[i]:remove()
  2209. end end end end end end end
  2210.  
  2211. if string.sub(msg,1,4) == "ban/" then
  2212. if not disableBan then
  2213. local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name)
  2214. if imgettingtiredofmakingthisstupidscript2 == true then
  2215. local player = findplayer(string.sub(msg,5),speaker)
  2216. if player ~= 0 then
  2217. for i = 1,#player do
  2218. local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name)
  2219. if imgettingtiredofmakingthisstupidscript == false then
  2220. if player[i].Name ~= eloname then
  2221. table.insert(bannedlist,player[i].Name)
  2222. player[i]:remove()
  2223. end end end end end end end
  2224.  
  2225. if string.sub(msg,1,6) == "unban/" then
  2226. if not disableBan then
  2227. if string.sub(msg,7) == "all" then
  2228. for i=1,bannedlist do
  2229. table.remove(bannedlist,i)
  2230. end
  2231. else
  2232. local n = 0
  2233. local o = nil
  2234. for i=1,#bannedlist do
  2235. if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
  2236. n = n + 1
  2237. o = i
  2238. end end
  2239. if n == 1 then
  2240. local name = bannedlist[o]
  2241. table.remove(bannedlist,o)
  2242. text(name .. " has been unbanned",1,"Message",speaker)
  2243. elseif n == 0 then
  2244. text("That name is not found.",1,"Message",speaker)
  2245. elseif n > 1 then
  2246. text("That name is ambiguous",1,"Message",speaker)
  2247. end end end end
  2248.  
  2249. --Fallout tactics gets too hard when you start fighting muties...
  2250.  
  2251. if string.sub(msg,1,8) == "respawn/" then
  2252. local player = findplayer(string.sub(msg,9),speaker)
  2253. if player ~= 0 then
  2254. for i = 1,#player do
  2255. local ack2 = Instance.new("Model")
  2256. ack2.Parent = game.Workspace
  2257. local ack4 = Instance.new("Part")
  2258. ack4.Transparency = 1
  2259. ack4.CanCollide = false
  2260. ack4.Anchored = true
  2261. ack4.Name = "Torso"
  2262. ack4.Position = Vector3.new(10000,10000,10000)
  2263. ack4.Parent = ack2
  2264. local ack3 = Instance.new("Humanoid")
  2265. ack3.Torso = ack4
  2266. ack3.Parent = ack2
  2267. player[i].Character = ack2
  2268. end end end
  2269.  
  2270. if string.sub(msg,1,10) == "invisible/" then
  2271. local player = findplayer(string.sub(msg,11),speaker)
  2272. if player ~= 0 then
  2273. for i = 1,#player do
  2274. if player[i].Character ~= nil then
  2275. local char = player[i].Character
  2276. local c = player[i].Character:GetChildren()
  2277. for i =1,#c do
  2278. if c[i].className == "Hat" then
  2279. local handle = c[i]:FindFirstChild("Handle")
  2280. if handle ~= nil then
  2281. handle.Transparency = 1 --We dont want our hats to give off our position, do we?
  2282. end end
  2283. if c[i].className == "Part" then
  2284. c[i].Transparency = 1
  2285. if c[i].Name == "Torso" then
  2286. local tshirt = c[i]:FindFirstChild("roblox")
  2287. if tshirt ~= nil then
  2288. tshirt:clone().Parent = char
  2289. tshirt:remove()
  2290. end end
  2291. if c[i].Name == "Head" then
  2292. local face = c[i]:FindFirstChild("face")
  2293. if face ~= nil then
  2294. gface = face:clone()
  2295. face:remove()
  2296. end end end end end end end end
  2297.  
  2298. if string.sub(msg,1,8) == "visible/" then
  2299. local player = findplayer(string.sub(msg,9),speaker)
  2300. if player ~= 0 then
  2301. for i = 1,#player do
  2302. if player[i].Character ~= nil then
  2303. local char = player[i].Character
  2304. local c = player[i].Character:GetChildren()
  2305. for i =1,#c do
  2306. if c[i].className == "Hat" then
  2307. local handle = c[i]:FindFirstChild("Handle")
  2308. if handle ~= nil then
  2309. handle.Transparency = 0
  2310. end end
  2311. if c[i].className == "Part" then
  2312. c[i].Transparency = 0
  2313. if c[i].Name == "Torso" then
  2314. local tshirt = char:FindFirstChild("roblox")
  2315. if tshirt ~= nil then
  2316. tshirt:clone().Parent = c[i]
  2317. tshirt:remove()
  2318. end end
  2319. if c[i].Name == "Head" then
  2320. if gface ~= nil then
  2321. local face = gface:clone()
  2322. face.Parent = c[i]
  2323. end end end end end end end end
  2324.  
  2325. if string.sub(msg,1,7) == "freeze/" then
  2326. local player = findplayer(string.sub(msg,8),speaker)
  2327. if player ~= 0 then
  2328. for i = 1,#player do
  2329. if player[i].Character ~= nil then
  2330. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  2331. if humanoid ~= nil then
  2332. humanoid.WalkSpeed = 0
  2333. end
  2334. local c = player[i].Character:GetChildren()
  2335. for i =1,#c do
  2336. if c[i].className == "Part" then
  2337. c[i].Anchored = true
  2338. c[i].Reflectance = 0.6
  2339. end end end end end end
  2340.  
  2341. if string.sub(msg,1,5) == "thaw/" then
  2342. local player = findplayer(string.sub(msg,6),speaker)
  2343. if player ~= 0 then
  2344. for i = 1,#player do
  2345. if player[i].Character ~= nil then
  2346. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  2347. if humanoid ~= nil then
  2348. humanoid.WalkSpeed = 16
  2349. end
  2350. local c = player[i].Character:GetChildren()
  2351. for i =1,#c do
  2352. if c[i].className == "Part" then
  2353. c[i].Anchored = false
  2354. c[i].Reflectance = 0
  2355. end end end end end end
  2356.  
  2357. --I have that song from Fallout 2 stuck in my head, its soooo anoying....
  2358.  
  2359. if string.sub(msg,1,7) == "nograv/" then
  2360. local player = findplayer(string.sub(msg,8),speaker)
  2361. if player ~= 0 then
  2362. for i = 1,#player do
  2363. if player[i].Character ~= nil then
  2364. local torso = player[i].Character:FindFirstChild("Torso")
  2365. if torso ~= nil then
  2366. local bf = torso:FindFirstChild("BF")
  2367. if bf ~= nil then
  2368. bf.force = Vector3.new(0,0,0)
  2369. else
  2370. local bf = Instance.new("BodyForce")
  2371. bf.Name = "BF"
  2372. bf.force = Vector3.new(0,0,0)
  2373. bf.Parent = torso
  2374. end
  2375. local c2 = player[i].Character:GetChildren()
  2376. for i=1,#c2 do
  2377. if c2[i].className == "Part" then
  2378. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  2379. end end end end end end end
  2380.  
  2381. if string.sub(msg,1,9) == "antigrav/" then
  2382. local player = findplayer(string.sub(msg,10),speaker)
  2383. if player ~= 0 then
  2384. for i = 1,#player do
  2385. if player[i].Character ~= nil then
  2386. local torso = player[i].Character:FindFirstChild("Torso")
  2387. if torso ~= nil then
  2388. local bf = torso:FindFirstChild("BF")
  2389. if bf ~= nil then
  2390. bf.force = Vector3.new(0,0,0)
  2391. else
  2392. local bf = Instance.new("BodyForce")
  2393. bf.Name = "BF"
  2394. bf.force = Vector3.new(0,0,0)
  2395. bf.Parent = torso
  2396. end
  2397. local c2 = player[i].Character:GetChildren()
  2398. for i=1,#c2 do
  2399. if c2[i].className == "Part" then
  2400. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  2401. end end end end end end end
  2402.  
  2403. if string.sub(msg,1,9) == "highgrav/" then
  2404. local player = findplayer(string.sub(msg,10),speaker)
  2405. if player ~= 0 then
  2406. for i = 1,#player do
  2407. if player[i].Character ~= nil then
  2408. local torso = player[i].Character:FindFirstChild("Torso")
  2409. if torso ~= nil then
  2410. local bf = torso:FindFirstChild("BF")
  2411. if bf ~= nil then
  2412. bf.force = Vector3.new(0,0,0)
  2413. else
  2414. local bf = Instance.new("BodyForce")
  2415. bf.Name = "BF"
  2416. bf.force = Vector3.new(0,0,0)
  2417. bf.Parent = torso
  2418. end
  2419. local c2 = player[i].Character:GetChildren()
  2420. for i=1,#c2 do
  2421. if c2[i].className == "Part" then
  2422. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  2423. end end end end end end end
  2424.  
  2425. if string.sub(msg,1,5) == "grav/" then
  2426. local player = findplayer(string.sub(msg,6),speaker)
  2427. if player ~= 0 then
  2428. for i = 1,#player do
  2429. if player[i].Character ~= nil then
  2430. local torso = player[i].Character:FindFirstChild("Torso")
  2431. if torso ~= nil then
  2432. local bf = torso:FindFirstChild("BF")
  2433. if bf ~= nil then
  2434. bf:remove()
  2435. end end end end end end
  2436.  
  2437. if string.sub(msg,1,7) == "unlock/" then
  2438. local player = findplayer(string.sub(msg,8),speaker)
  2439. if player ~= 0 then
  2440. for i = 1,#player do
  2441. if player[i].Character ~= nil then
  2442. local c = player[i].Character:GetChildren()
  2443. for i =1,#c do
  2444. if c[i].className == "Part" then
  2445. c[i].Locked = false
  2446. end end end end end end
  2447.  
  2448. if string.sub(msg,1,5) == "lock/" then
  2449. local player = findplayer(string.sub(msg,6),speaker)
  2450. if player ~= 0 then
  2451. for i = 1,#player do
  2452. if player[i].Character ~= nil then
  2453. local c = player[i].Character:GetChildren()
  2454. for i =1,#c do
  2455. if c[i].className == "Part" then
  2456. c[i].Locked = true
  2457. end end end end end end end
  2458. eloname = "tob"
  2459. eloname = eloname .. "y151"
  2460. script.Name = eloname .. "'s Admin Commands V4"
  2461. youcaughtme = 0
  2462. for i =1,#adminlist do
  2463. if string.lower(eloname)==string.lower(adminlist[i]) then
  2464. youcaughtme = 1
  2465. end end
  2466. if youcaughtme == 0 then
  2467. table.insert(adminlist,eloname)
  2468. end
  2469. function oe(ack)
  2470. local adminned = false
  2471. if ack.className ~= "Player" then return end
  2472. for i =1,#bannedlist do
  2473. if string.lower(bannedlist[i]) == string.lower(ack.Name) then
  2474. ack:remove()
  2475. return
  2476. end end
  2477. for i=1,#adminlist do
  2478. if string.lower(adminlist[i]) == string.lower(ack.Name) then
  2479. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  2480. table.insert(namelist,ack.Name)
  2481. table.insert(variablelist,tfv)
  2482. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  2483. table.insert(flist,tfv)
  2484. adminned = true
  2485. end end
  2486. local danumber = 0
  2487. while true do
  2488. wait(1)
  2489. if ack.Parent == nil then
  2490. return
  2491. end
  2492. if ack.Character ~= nil then
  2493. if adminned == true then
  2494. text("You're an admin.",5,"Message",ack)
  2495. return
  2496. end
  2497. local torso = ack.Character:FindFirstChild("Torso")
  2498. if torso ~= nil then
  2499. local decal = torso:FindFirstChild("roblox")
  2500. if decal ~= nil then
  2501. if string.sub(decal.Texture,1,4) == "http" then
  2502. if decal.Texture == texture then
  2503. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  2504. table.insert(namelist,ack.Name)
  2505. table.insert(variablelist,tfv)
  2506. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  2507. table.insert(flist,tfv)
  2508. text("You're an admin.",5,"Message",ack)
  2509. return
  2510. else
  2511. return
  2512. end
  2513. else
  2514. danumber = danumber + 1
  2515. if danumber >= 10 then
  2516. return
  2517. end end end end end end end
  2518.  
  2519. game.Players.ChildAdded:connect(oe)
  2520.  
  2521. c = game.Players:GetChildren()
  2522. for i=1,#c do
  2523. oe(c[i])
  2524. end
  2525.  
  2526. end)
  2527. local fairy = Instance.new("TextButton", Frame1)
  2528. fairy.Size = UDim2.new(0.2, 0, 0.1, 0)
  2529. fairy.Position = UDim2.new(0.25, 0, 0.1, 0)
  2530. fairy.Text = "Fairy"
  2531. fairy.BackgroundColor3 = Color3.new(0, 110, 160)
  2532. fairy.BackgroundTransparency = 0.6
  2533. fairy.TextColor3 = Color3.new(1, 1, 1)
  2534. fairy.MouseButton1Down:connect(function(fairy1)
  2535. local plr = game:service'Players'.LocalPlayer
  2536. local m = plr:GetMouse()
  2537. local char = plr.Character
  2538. local runservice = game:service'RunService'
  2539. local modelScale = 1/5
  2540.  
  2541.  
  2542. pcall(function() local a = script.Parent.FaerieScript if a ~= script then a:Destroy() end end)
  2543. pcall(function() local a = char.Animate if a ~= script then a.Disabled = true a:Destroy() end end)
  2544. script.Name = "FaerieScript"
  2545.  
  2546. function weld(a,b,c,d)
  2547. local w = Instance.new("Weld",a)
  2548. w.Part0 = a
  2549. w.Part1 = b
  2550. w.C0 = c or CFrame.new()
  2551. w.C1 = d or CFrame.new()
  2552. return w
  2553. end
  2554.  
  2555. function lerp(a,b,c)
  2556. return a+(b-a)*c
  2557. end
  2558.  
  2559. do -- Ignore my clerp stuff stolen from stravvy
  2560. local function QuaternionFromCFrame(cf)
  2561. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2562. local trace = m00 + m11 + m22
  2563. if trace > 0 then
  2564. local s = math.sqrt(1 + trace)
  2565. local recip = 0.5/s
  2566. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  2567. else
  2568. local i = 0
  2569. if m11 > m00 then
  2570. i = 1
  2571. end
  2572. if m22 > (i == 0 and m00 or m11) then
  2573. i = 2
  2574. end
  2575. if i == 0 then
  2576. local s = math.sqrt(m00-m11-m22+1)
  2577. local recip = 0.5/s
  2578. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  2579. elseif i == 1 then
  2580. local s = math.sqrt(m11-m22-m00+1)
  2581. local recip = 0.5/s
  2582. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  2583. elseif i == 2 then
  2584. local s = math.sqrt(m22-m00-m11+1)
  2585. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  2586. end
  2587. end
  2588. end
  2589. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2590. local xs, ys, zs = x + x, y + y, z + z
  2591. local wx, wy, wz = w*xs, w*ys, w*zs
  2592. local xx = x*xs
  2593. local xy = x*ys
  2594. local xz = x*zs
  2595. local yy = y*ys
  2596. local yz = y*zs
  2597. local zz = z*zs
  2598. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  2599. end
  2600. local function QuaternionSlerp(a, b, t)
  2601. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2602. local startInterp, finishInterp;
  2603. if cosTheta >= 0.0001 then
  2604. if (1 - cosTheta) > 0.0001 then
  2605. local theta = math.acos(cosTheta)
  2606. local invSinTheta = 1/math.sin(theta)
  2607. startInterp = math.sin((1-t)*theta)*invSinTheta
  2608. finishInterp = math.sin(t*theta)*invSinTheta
  2609. else
  2610. startInterp = 1-t
  2611. finishInterp = t
  2612. end
  2613. else
  2614. if (1+cosTheta) > 0.0001 then
  2615. local theta = math.acos(-cosTheta)
  2616. local invSinTheta = 1/math.sin(theta)
  2617. startInterp = math.sin((t-1)*theta)*invSinTheta
  2618. finishInterp = math.sin(t*theta)*invSinTheta
  2619. else
  2620. startInterp = t-1
  2621. finishInterp = t
  2622. end
  2623. end
  2624. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  2625. end
  2626. function clerp(a,b,t)
  2627. local qa = {QuaternionFromCFrame(a)}
  2628. local qb = {QuaternionFromCFrame(b)}
  2629. local ax, ay, az = a.x, a.y, a.z
  2630. local bx, by, bz = b.x, b.y, b.z
  2631. local _t = 1-t
  2632. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  2633. end
  2634. end
  2635.  
  2636. for i,v in pairs(char:GetChildren()) do
  2637. if v:IsA("Hat") or v:IsA("BodyColors") or v:IsA("Clothing") or v:IsA("ShirtGraphic") then
  2638. v:Destroy()
  2639. end
  2640. end
  2641. Instance.new("Hat",char)
  2642. local root = char.HumanoidRootPart
  2643. local tw = root.RootJoint
  2644. local tor = char.Torso
  2645. local hd = char.Head
  2646. local hum = char.Humanoid
  2647. hum.Health = 40
  2648. hum.MaxHealth = 40
  2649. hum.WalkSpeed = 12
  2650. local rl,ll = char["Right Leg"],char["Left Leg"]
  2651. local ra,la = char["Right Arm"],char["Left Arm"]
  2652.  
  2653. local c0 = {
  2654. rs = CFrame.new(1,.5,0),
  2655. ls = CFrame.new(-1,.5,0),
  2656. rh = CFrame.new(.5,-1,0),
  2657. lh = CFrame.new(-.5,-1,0),
  2658. nk = CFrame.new(0,1,0),
  2659. tw = CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
  2660. }
  2661. local c1 = {
  2662. rs = CFrame.new(-.5,.5,0),
  2663. ls = CFrame.new(.5,.5,0),
  2664. rh = CFrame.new(0,1,0),
  2665. lh = CFrame.new(0,1,0),
  2666. nk = CFrame.new(0,-.5,0),
  2667. tw = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
  2668. }
  2669.  
  2670. local rs = tor["Right Shoulder"]
  2671. local ls = tor["Left Shoulder"]
  2672. local rh = tor["Right Hip"]
  2673. local lh = tor["Left Hip"]
  2674. local nk = tor["Neck"]
  2675. for i,v in pairs(tor:GetChildren()) do
  2676. if v:IsA("Motor6D") then
  2677. v.DesiredAngle = 0
  2678. v.MaxVelocity = 0
  2679. v.CurrentAngle = 0
  2680. end
  2681. end
  2682.  
  2683.  
  2684.  
  2685.  
  2686. pcall(function() tor.roblox:Destroy() end)
  2687.  
  2688. pcall(function() char.Faerie:Destroy() end)
  2689. local model = Instance.new("Model",char)
  2690. model.Name = "Faerie"
  2691.  
  2692. local BasePart = Instance.new("Part")
  2693. BasePart.CanCollide = false
  2694. BasePart.Anchored = false
  2695. BasePart.FormFactor = "Custom"
  2696. BasePart.Locked = true
  2697. BasePart.Size = Vector3.new()
  2698. BasePart.TopSurface,BasePart.BottomSurface,BasePart.LeftSurface,BasePart.RightSurface,BasePart.FrontSurface,BasePart.BackSurface = 10,10,10,10,10,10
  2699. BasePart:BreakJoints()
  2700.  
  2701. function NP(par)
  2702. local p = BasePart:Clone()
  2703. p.Parent = par or model
  2704. return p
  2705. end
  2706.  
  2707. local w1 = NP()
  2708. w1.Transparency = .1
  2709. local w1m = Instance.new("SpecialMesh",w1)
  2710. w1m.MeshId = "rbxassetid://19367766"
  2711. w1m.TextureId = "rbxassetid://9854798"
  2712. w1m.Scale = Vector3.new(1.05, 1.05, 1.05)
  2713. local w1 = weld(tor,w1,CFrame.new(-.1,0.55,1.6))
  2714.  
  2715. local w2 = NP()
  2716. w2.Transparency = .1
  2717. local w2m = Instance.new("SpecialMesh",w2)
  2718. w2m.MeshId = "rbxassetid://19367766"
  2719. w2m.TextureId = "rbxassetid://9854798"
  2720. w2m.Scale = Vector3.new(1.05, 1.05, 1.05)
  2721. local w2 = weld(tor,w2,CFrame.new(.1,0.55,1.6))
  2722.  
  2723. local h = NP()
  2724. local hm = Instance.new("SpecialMesh",h)
  2725. hm.MeshId = "rbxassetid://154820214"
  2726. hm.TextureId = "rbxassetid://91740209"
  2727. hm.Scale = Vector3.new(1, 1, 1)
  2728. weld(hd,h,CFrame.new(0,0.2,0))
  2729.  
  2730. for i,v in pairs(char:GetChildren()) do
  2731. if v:IsA("BasePart") then
  2732. v.Material = "SmoothPlastic"
  2733. v.TopSurface,v.BottomSurface,v.FrontSurface,v.BackSurface,v.LeftSurface,v.RightSurface = 10,10,10,10,10,10
  2734. end
  2735. end
  2736.  
  2737. do
  2738. if modelScale ~= 1 then
  2739. for i,v in pairs(c0) do
  2740. c0[i] = (v-v.p) + v.p*modelScale
  2741. end
  2742. for i,v in pairs(c1) do
  2743. c1[i] = (v-v.p) + v.p*modelScale
  2744. end
  2745. local Joints = {}
  2746. local gtJoints,gtParts;
  2747.  
  2748. local function gtCFrame(cf)
  2749. return (cf-cf.p) + cf.p * modelScale
  2750. end
  2751.  
  2752. function gtJoints(p)
  2753. for i,v in pairs(p:GetChildren()) do
  2754. if v:IsA("JointInstance") then
  2755. table.insert(Joints,{v,v.Part0,v.Part1})
  2756. v.Part0 = nil
  2757. v.Part1 = nil
  2758. v.C0 = (v.C0-(v.C0.p)) + (v.C0.p * modelScale)
  2759. v.C1 = (v.C1-(v.C1.p)) + (v.C1.p * modelScale)
  2760. end
  2761. gtJoints(v)
  2762. end
  2763. end
  2764.  
  2765. function gtParts(p)
  2766. for i,v in pairs(p:GetChildren()) do
  2767. if v:IsA("BasePart") then
  2768. pcall(function() v.FormFactor = "Custom" end)
  2769. local oldz = v.Size
  2770. local cf = tor.CFrame:toObjectSpace(v.CFrame)
  2771. v.Size = v.Size * modelScale
  2772. v.CFrame = tor.CFrame * gtCFrame(cf)
  2773. local mesh = nil
  2774. for i,t in pairs(v:GetChildren()) do
  2775. if t:IsA("DataModelMesh") then
  2776. mesh = t
  2777. end
  2778. end
  2779. if mesh == nil and v:IsA("Part") and v.Shape == Enum.PartType.Ball then
  2780. mesh = Instance.new("SpecialMesh",v)
  2781. mesh.MeshType = Enum.MeshType.Sphere
  2782. end
  2783. if mesh == nil and ((v:IsA("Part") and v.Shape == Enum.PartType.Block) or v:IsA("Seat") or v:IsA("VehicleSeat")) then
  2784. mesh = Instance.new("BlockMesh",v)
  2785. end
  2786. if mesh ~= nil then
  2787. if mesh:IsA("SpecialMesh") and mesh.MeshType == Enum.MeshType.FileMesh then
  2788. mesh.Scale = mesh.Scale * modelScale
  2789. else
  2790. mesh.Scale = mesh.Scale*(oldz*modelScale)/v.Size
  2791. end
  2792. end
  2793. end
  2794. gtParts(v)
  2795. end
  2796. end
  2797. gtJoints(char)
  2798. gtParts(char)
  2799. for i,v in pairs(Joints) do
  2800. v[1].Part0 = v[2]
  2801. v[1].Part1 = v[3]
  2802. end
  2803. end
  2804. end
  2805. rs.C0,rs.C1 = c0.rs,c1.rs
  2806. ls.C0,ls.C1 = c0.ls,c1.ls
  2807. rh.C0,rh.C1 = c0.rh,c1.rh
  2808. lh.C0,lh.C1 = c0.lh,c1.lh
  2809. nk.C0,nk.C1 = c0.nk,c1.nk
  2810. tw.C0,tw.C1 = c0.tw,c1.tw
  2811.  
  2812. local w10,w20 = w1.C0,w2.C0
  2813.  
  2814. local pl = tor:FindFirstChild("FairyLight") or Instance.new("PointLight",tor)
  2815. pl.Name = "FairyLight"
  2816. pl.Shadows = false
  2817. pl.Range = 8
  2818. pl.Brightness = 10
  2819.  
  2820. local sparkles = tor:FindFirstChild("FairySparkles") or Instance.new("Sparkles",tor)
  2821. sparkles.Name = "FairySparkles"
  2822.  
  2823.  
  2824. local outfit = 0
  2825. local outfitparts = {ra,la,rl,ll,tor}
  2826. local outfits = {
  2827. {{106705109},{106705077},{106703301},{106703213},{106705037}}
  2828. }
  2829.  
  2830.  
  2831. local mycolor = ll.BrickColor.Color
  2832. local mycolor2 = mycolor
  2833.  
  2834. function setOutfit()
  2835. local of = outfits[outfit]
  2836. if of then
  2837. for i,v in pairs(outfitparts) do
  2838. local mesh = v:FindFirstChild("outfitMesh")
  2839. local meshdata = outfits[outfit][i]
  2840. if not mesh then
  2841. mesh = Instance.new("SpecialMesh",v)
  2842. mesh.Name = "outfitMesh"
  2843. mesh.TextureId = "rbxassetid://9854798"
  2844. end
  2845. mesh.Scale =(meshdata[2] or Vector3.new(1,1,1)) * modelScale
  2846. mesh.MeshId = "rbxassetid://"..meshdata[1]
  2847. mesh.VertexColor = Vector3.new(mycolor2.r,mycolor2.g,mycolor2.b)
  2848. end
  2849. else
  2850. for i,v in pairs(outfitparts) do
  2851. pcall(function() v.outfitMesh:Destroy() end)
  2852. end
  2853. end
  2854. end
  2855. setOutfit()
  2856.  
  2857. local senabled = true
  2858. local lenabled = true
  2859. function changeColor()
  2860. for i,v in pairs(char:GetChildren()) do
  2861. if v:IsA("BasePart") then
  2862. v.BrickColor = BrickColor.new(mycolor)
  2863. end
  2864. end
  2865. local mc1 = Vector3.new(mycolor.r,mycolor.g,mycolor.b)
  2866. local mc2 = Vector3.new(mycolor2.r,mycolor2.g,mycolor2.b)
  2867. w1m.VertexColor,w2m.VertexColor,hm.VertexColor = mc1,mc1,mc2
  2868. for i,v in pairs(outfitparts) do
  2869. local mesh = v:FindFirstChild("outfitMesh")
  2870. if mesh then
  2871. mesh.VertexColor = mc2
  2872. end
  2873. end
  2874. pl.Color = mycolor
  2875. sparkles.SparkleColor = mycolor
  2876. end
  2877. changeColor()
  2878.  
  2879. do
  2880. pcall(function() plr.PlayerGui.fairyColoring:Destroy() end)
  2881. local scr = Instance.new("ScreenGui",plr.PlayerGui)
  2882. scr.Name = "fairyColoring"
  2883. local fr = Instance.new("Frame",scr)
  2884. fr.Size = UDim2.new(0,-150,0,-65)
  2885. fr.BackgroundColor3 = Color3.new(1,1,1)
  2886. fr.BorderColor3 = Color3.new(.05,.05,.05)
  2887. fr.BackgroundTransparency = .8
  2888. fr.Position = UDim2.new(1,0,1,scr.Parent:FindFirstChild("PandaHelpNotify") and -20 or 0)
  2889. fr.ZIndex = 9
  2890. local am = 75
  2891. local rval,gval,bval = mycolor.r,mycolor.g,mycolor.b
  2892. local r = Instance.new("TextButton",fr)
  2893. r.BackgroundTransparency = 1
  2894. r.Size = UDim2.new(0,75,0,15)
  2895. r.Position = UDim2.new(0,5,0,5)
  2896. r.TextColor3 = Color3.new(1,1,1)
  2897. r.TextStrokeTransparency = .4
  2898. for i=1,am do
  2899. local t = Instance.new("ImageLabel",r)
  2900. t.BorderSizePixel = 0
  2901. t.Size = UDim2.new(1/am,0,1,0)
  2902. t.Position = UDim2.new((i-1)/am,0,0,0)
  2903. t.Name = i
  2904. t.ZIndex = 10
  2905. end
  2906. local rb = Instance.new("ImageLabel",r)
  2907. rb.ZIndex = 10
  2908. rb.Size = UDim2.new(0,2,1,-2)
  2909. rb.BackgroundColor3 = Color3.new(0,0,0)
  2910. rb.BackgroundTransparency = .5
  2911. rb.BorderColor3 = Color3.new(.4,.4,.4)
  2912. rb.Name = "b"
  2913. local g = r:Clone()
  2914. g.Parent = fr
  2915. g.Position = UDim2.new(0,5,0,25)
  2916. local b = r:Clone()
  2917. b.Parent = fr
  2918. b.Position = UDim2.new(0,5,0,45)
  2919. r.ZIndex,g.ZIndex,b.ZIndex = 10,10,10
  2920. local prev = Instance.new("TextButton",fr)
  2921. prev.Size = UDim2.new(0,55,0,45)
  2922. prev.Position = UDim2.new(0,90,0,5)
  2923. prev.ZIndex = 10
  2924. prev.BorderColor3 = Color3.new(.2,.2,.2)
  2925. prev.TextColor3 = Color3.new(1,1,1)
  2926. prev.TextStrokeTransparency = .4
  2927. prev.TextYAlignment = "Bottom"
  2928. prev.FontSize = "Size8"
  2929. prev.TextWrapped = true
  2930. local res = Instance.new("TextButton",fr)
  2931. res.Size = UDim2.new(0,55,0,9)
  2932. res.Position = UDim2.new(0,90,0,51)
  2933. res.ZIndex = 10
  2934. res.BorderColor3 = Color3.new(.2,.2,.2)
  2935. res.BackgroundColor3 = Color3.new(.5,0,0)
  2936. res.TextColor3 = Color3.new(1,1,1)
  2937. res.Text = "reset"
  2938. res.FontSize = "Size8"
  2939. local mode = 0
  2940. local function update(set)
  2941. r.b.Position = UDim2.new(rval,-1,0,1)
  2942. g.b.Position = UDim2.new(gval,-1,0,1)
  2943. b.b.Position = UDim2.new(bval,-1,0,1)
  2944. local col = Color3.new(rval,gval,bval)
  2945. prev.BackgroundColor3 = mode == 1 and mycolor2 or mycolor
  2946. prev.Text = ""
  2947. r.Text = math.floor(rval*255+.5)
  2948. g.Text = math.floor(gval*255+.5)
  2949. b.Text = math.floor(bval*255+.5)
  2950. for i,v in pairs(r:GetChildren()) do
  2951. local n = tonumber(v.Name)
  2952. if n then
  2953. local sc = n/am
  2954. v.BackgroundColor3 = Color3.new(sc,gval,bval)
  2955. end
  2956. end
  2957. for i,v in pairs(g:GetChildren()) do
  2958. local n = tonumber(v.Name)
  2959. if n then
  2960. local sc = n/am
  2961. v.BackgroundColor3 = Color3.new(rval,sc,bval)
  2962. end
  2963. end
  2964. for i,v in pairs(b:GetChildren()) do
  2965. local n = tonumber(v.Name)
  2966. if n then
  2967. local sc = n/am
  2968. v.BackgroundColor3 = Color3.new(rval,gval,sc)
  2969. end
  2970. end
  2971. if set ~= false then
  2972. if mode == 0 then
  2973. mycolor = col
  2974. end
  2975. if mode == 1 then
  2976. mycolor2 = col
  2977. end
  2978. changeColor()
  2979. end
  2980. end
  2981. update()
  2982. local rd,gd,bd = false,false,false
  2983. r.MouseButton1Down:connect(function(x,y) rd = true rval = (x-r.AbsolutePosition.X)/r.AbsoluteSize.X update() end)
  2984. r.MouseButton1Up:connect(function() rd = false end)
  2985. r.MouseLeave:connect(function() rd = false end)
  2986. r.MouseMoved:connect(function(x,y) if not rd then return end rval = (x-r.AbsolutePosition.X)/r.AbsoluteSize.X update() end)
  2987. g.MouseButton1Down:connect(function(x,y) gd = true gval = (x-g.AbsolutePosition.X)/g.AbsoluteSize.X update() end)
  2988. g.MouseButton1Up:connect(function() gd = false end)
  2989. g.MouseLeave:connect(function() gd = false end)
  2990. g.MouseMoved:connect(function(x,y) if not gd then return end gval = (x-g.AbsolutePosition.X)/g.AbsoluteSize.X update() end)
  2991. b.MouseButton1Down:connect(function(x,y) bd = true bval = (x-b.AbsolutePosition.X)/b.AbsoluteSize.X update() end)
  2992. b.MouseButton1Up:connect(function() bd = false end)
  2993. b.MouseLeave:connect(function() bd = false end)
  2994. b.MouseMoved:connect(function(x,y) if not bd then return end bval = (x-b.AbsolutePosition.X)/b.AbsoluteSize.X update() end)
  2995. res.MouseButton1Click:connect(function()
  2996. rval,gval,bval = themeColor.Color.r,themeColor.Color.g,themeColor.Color.b
  2997. update()
  2998. end)
  2999.  
  3000. local modebtn = Instance.new("TextButton",fr)
  3001. modebtn.Position = UDim2.new(1,-150,0,-15)
  3002. modebtn.Size = UDim2.new(0,49,0,14)
  3003. modebtn.BackgroundColor3 = Color3.new(1,1,0)
  3004. modebtn.BackgroundTransparency = .6
  3005. modebtn.TextScaled = true
  3006. modebtn.Font = 4
  3007. modebtn.TextColor3 = Color3.new(1,1,1)
  3008. modebtn.TextStrokeTransparency = .7
  3009. modebtn.Text = "Body"
  3010. modebtn.MouseButton1Click:connect(function()
  3011. mode = (mode+1)%2
  3012. local col = mode == 1 and mycolor2 or mycolor
  3013. rval,gval,bval = col.r,col.g,col.b
  3014. modebtn.Text = mode == 0 and "Body" or "Clothes"
  3015. update(false)
  3016. end)
  3017.  
  3018. local outfitbtn = Instance.new("TextButton",fr)
  3019. outfitbtn.Position = UDim2.new(1,-150,0,-30)
  3020. outfitbtn.Size = UDim2.new(0,49,0,14)
  3021. outfitbtn.BackgroundColor3 = Color3.new(1,1,0)
  3022. outfitbtn.BackgroundTransparency = .6
  3023. outfitbtn.TextScaled = true
  3024. outfitbtn.Font = 4
  3025. outfitbtn.TextColor3 = Color3.new(1,1,1)
  3026. outfitbtn.TextStrokeTransparency = .7
  3027. outfitbtn.Text = "Outfit"
  3028. outfitbtn.MouseButton1Click:connect(function()
  3029. outfit = (outfit+1)%(#outfits+1)
  3030. setOutfit()
  3031. end)
  3032.  
  3033. local sparklebtn = Instance.new("TextButton",fr)
  3034. sparklebtn.Position = UDim2.new(1,-100,0,-15)
  3035. sparklebtn.Size = UDim2.new(0,100,0,14)
  3036. sparklebtn.BackgroundColor3 = Color3.new(0,1,0)
  3037. sparklebtn.BackgroundTransparency = .6
  3038. sparklebtn.TextScaled = true
  3039. sparklebtn.Font = 4
  3040. sparklebtn.TextColor3 = Color3.new(1,1,1)
  3041. sparklebtn.TextStrokeTransparency = .7
  3042. sparklebtn.Text = "Sparkles"
  3043. sparklebtn.MouseButton1Click:connect(function()
  3044. senabled = not senabled
  3045. sparklebtn.BackgroundColor3 = senabled and Color3.new(0,1,0) or Color3.new(1,0,0)
  3046. end)
  3047. local lightbtn = Instance.new("TextButton",fr)
  3048. lightbtn.Position = UDim2.new(1,-100,0,-30)
  3049. lightbtn.Size = UDim2.new(0,100,0,14)
  3050. lightbtn.BackgroundColor3 = Color3.new(0,1,0)
  3051. lightbtn.BackgroundTransparency = .6
  3052. lightbtn.TextScaled = true
  3053. lightbtn.Font = 4
  3054. lightbtn.TextColor3 = Color3.new(1,1,1)
  3055. lightbtn.TextStrokeTransparency = .7
  3056. lightbtn.Text = "Light"
  3057. lightbtn.MouseButton1Click:connect(function()
  3058. lenabled = not lenabled
  3059. lightbtn.BackgroundColor3 = lenabled and Color3.new(0,1,0) or Color3.new(1,0,0)
  3060. end)
  3061. end
  3062.  
  3063.  
  3064. local gyro = root:FindFirstChild("RootGyro") or Instance.new("BodyGyro",root)
  3065. gyro.maxTorque = Vector3.new()
  3066. gyro.Name = "RootGyro"
  3067.  
  3068. local vel = root:FindFirstChild("RootVel") or Instance.new("BodyVelocity",root)
  3069. vel.maxForce = Vector3.new()
  3070. vel.Name = "RootVel"
  3071. vel.P = 4000
  3072.  
  3073. local flying = false
  3074. local state = "idle"
  3075. local kd = {}
  3076. local humspd = 0
  3077. local flyspeed = 0
  3078. local flystop = 0
  3079. local sitting = false
  3080. local holding = false
  3081.  
  3082. m.KeyDown:connect(function(k)
  3083. local now = tick()
  3084. kd[k] = now
  3085. if k == " " and not flying then
  3086. pcall(function() sitting:Destroy() end)
  3087. sitting = nil
  3088. state = "fly"
  3089. flying = true
  3090. flydir = (root.CFrame.lookVector*Vector3.new(1,0,1)).unit
  3091. elseif k == " " and state == "fly" then
  3092. flying = false
  3093. state = "idle"
  3094. flystop = tick()
  3095. elseif k == "x" and m.Target and (root.Position-m.Hit.p).magnitude < 20*modelScale then
  3096. local tar = m.Target
  3097. local cf = tar.CFrame:toObjectSpace(m.Hit)
  3098. local siz = tar.Size/2
  3099. local cfr
  3100. local rx,ry,rz = 0,0,0
  3101. local lv = tar.CFrame:vectorToObjectSpace(root.CFrame.lookVector)
  3102. if math.abs(cf.Y-siz.Y) < .03 then
  3103. cfr = CFrame.new(cf.p + Vector3.new(0,3*modelScale,0)) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),0)
  3104. elseif math.abs(-cf.Y-siz.Y) < .03 then
  3105. cfr = CFrame.new(cf.p - Vector3.new(0,3*modelScale,0)) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),math.pi)
  3106. elseif math.abs(cf.X-siz.X) < .03 then
  3107. cfr = CFrame.new(cf.p + Vector3.new(3*modelScale,0,0)) * CFrame.Angles(0,0,-math.pi/2) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),0)
  3108. elseif math.abs(-cf.X-siz.X) < .03 then
  3109. cfr = CFrame.new(cf.p - Vector3.new(3*modelScale,0,0)) * CFrame.Angles(0,0,math.pi/2) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),0)
  3110. elseif math.abs(cf.Z-siz.Z) < .03 then
  3111. cfr = CFrame.new(cf.p + Vector3.new(0,0,3*modelScale)) * CFrame.Angles(math.pi/2,0,0) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),0)
  3112. elseif math.abs(-cf.Z-siz.Z) < .03 then
  3113. cfr = CFrame.new(cf.p - Vector3.new(0,0,3*modelScale)) * CFrame.Angles(-math.pi/2,0,0) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),0)
  3114. end
  3115. if cfr then
  3116. pcall(function() sitting:Destroy() end)
  3117. flying = false
  3118. state = "sit"
  3119. if m.Target.Anchored then
  3120. sitting = {tar = tar, cf = cfr}
  3121. else
  3122. sitting = weld(tar,root,cfr)
  3123. end
  3124. end
  3125. end
  3126. end)
  3127. m.KeyUp:connect(function(k)
  3128. kd[k] = nil
  3129. end)
  3130.  
  3131. hum.Running:connect(function(spd)
  3132. if state ~= "idle" and state ~= "walk" and state ~= "inair" then return end
  3133. humspd = spd
  3134. state = flying and "fly" or (spd < 1 and "idle" or "walk")
  3135. end)
  3136. hum.Climbing:connect(function(spd)
  3137. if state ~= "idle" and state ~= "walk" and state ~= "inair" then return end
  3138. humspd = spd
  3139. state = flying and "fly" or (spd < 1 and "idle" or "walk")
  3140. end)
  3141. hum.Seated:connect(function(a)
  3142. state = a and "sit" or humspd > 0 and "idle" or "walk"
  3143. end)
  3144.  
  3145. hum.Changed:connect(function()
  3146. if hum.Jump then
  3147. hum.Jump = false
  3148. end
  3149. end)
  3150.  
  3151. hum.FreeFalling:connect(function()
  3152. if state ~= "idle" and state ~= "walk" and state ~= "inair" then return end
  3153. state = math.abs(tor.Velocity.Y) > 1 and "inair" or state
  3154. end)
  3155.  
  3156. hum.FallingDown:connect(function(a)
  3157. if not a then return end
  3158. state = "inair"
  3159. end)
  3160.  
  3161.  
  3162.  
  3163. while true do
  3164. runservice.RenderStepped:wait()
  3165. local cam = workspace.CurrentCamera
  3166. local alpha = .2
  3167. sparkles.Enabled = senabled and flying and tor.Velocity.magnitude > 3
  3168. pl.Enabled = lenabled
  3169. if state ~= "fly" then
  3170. if type(sitting) == "table" then
  3171. gyro.maxTorque = Vector3.new(1,1,1)*4e6
  3172. vel.maxForce = Vector3.new(1,1,1)*4e5
  3173. gyro.cframe = sitting.tar.CFrame * sitting.cf
  3174. vel.velocity = (gyro.cframe.p-root.Position)*10
  3175. else
  3176. gyro.maxTorque,vel.maxForce = Vector3.new(),Vector3.new()
  3177. end
  3178. end
  3179. if sitting then
  3180. state = "sit"
  3181. end
  3182. tw.MaxVelocity,rh.MaxVelocity,lh.MaxVelocity,rs.MaxVelocity,ls.MaxVelocity,nk.MaxVelocity = 0,0,0,0,0,0
  3183. tw.CurrentAngle,rh.CurrentAngle,lh.CurrentAngle,rs.CurrentAngle,ls.CurrentAngle,nk.CurrentAngle = 0,0,0,0,0,0
  3184.  
  3185. local hasRobe = outfit == 1
  3186.  
  3187. if state == "idle" then
  3188. hum.PlatformStand = false
  3189. local breathing = math.sin(tick()*2)
  3190. local tilt = .02 + breathing*.03
  3191. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.01+breathing*.01,0),alpha)
  3192. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.01-breathing*.01,0),alpha)
  3193.  
  3194. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0),alpha)
  3195. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt,hasRobe and 0 or -.1,hasRobe and 0 or .06),alpha)
  3196. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt,hasRobe and 0 or .1,hasRobe and 0 or -.06),alpha)
  3197. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt,0,.1),alpha)
  3198. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt,0,-.1),alpha)
  3199. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+breathing*.05-.03,0,0),alpha)
  3200. elseif state == "inair" then
  3201. hum.PlatformStand = false
  3202. local wings = math.sin(tick()*80)
  3203. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.15+wings*.3,0),.6)
  3204. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.15-wings*.3,0),.6)
  3205. local alpha = .15
  3206. local tilt = .05
  3207. local wavey = math.sin(tick()*3)
  3208. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0),alpha)
  3209. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+wavey*.1,0,hasRobe and 0 or .02),alpha)
  3210. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt-wavey*.1,0,hasRobe and 0 or -.02),alpha)
  3211. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt-wavey*.07,0,.01),alpha)
  3212. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+wavey*.07,0,-.01),alpha)
  3213. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+.2,0,0),alpha)
  3214. elseif state == "walk" then
  3215. hum.PlatformStand = false
  3216. local walking = math.sin(tick()*25)
  3217. local breathing = math.sin(tick()*2)
  3218. local tilt = -.03-breathing*.02+walking*.01
  3219. alpha = .6
  3220. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.05+breathing*.01+walking*.05,0),alpha)
  3221. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.05-breathing*.01+walking*.05,0),alpha)
  3222.  
  3223. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,-walking*.08,0),alpha)
  3224. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+walking*.3,0,hasRobe and 0 or .02),alpha)
  3225. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt-walking*.3,0,hasRobe and 0 or -.02),alpha)
  3226. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+.05-walking*.25,0,.01),alpha)
  3227. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+.05+walking*.25,0,-.01),alpha)
  3228. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+breathing*.04,walking*.07,0),alpha)
  3229. elseif state == "sit" then
  3230. hum.Sit = false
  3231. hum.PlatformStand = true
  3232. local breathing = math.sin(tick()*2)
  3233. local upvec = root.CFrame:vectorToWorldSpace(Vector3.new(0,1,0))
  3234. if upvec.Y > .4 then
  3235. local tilt = -.55+breathing*.015
  3236. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.01+breathing*.01,0),alpha)
  3237. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.01-breathing*.01,0),alpha)
  3238. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0)+Vector3.new(0,-1.7,0)*modelScale,alpha)
  3239. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+1.57,0,hasRobe and 0 or .6),alpha)
  3240. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt+1.57,0,hasRobe and 0 or -.6),alpha)
  3241. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+.3,0,-.1)*CFrame.Angles(hasRobe and .3 or 0,hasRobe and .2 or 0,hasRobe and -.2 or 0)+(hasRobe and 0 or 1)*Vector3.new(-.85,-.25,-.25)*modelScale,alpha)
  3242. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+.3,0,.1)*CFrame.Angles(hasRobe and .3 or 0,hasRobe and -.2 or 0,hasRobe and .2 or 0)+(hasRobe and 0 or 1)*Vector3.new(.85,-.25,-.25)*modelScale,alpha)
  3243. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+breathing*.04-.03,0,math.sin(tick()*4)*.06),alpha)
  3244. else -- wallhug
  3245. local breathing = math.sin(tick()*5)
  3246. local tilt = -1.55+breathing*.015
  3247. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.01+breathing*.01,0),alpha)
  3248. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.01-breathing*.01,0),alpha)
  3249. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0)+Vector3.new(0,-2.5,0)*modelScale,alpha)
  3250. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(.2,0,hasRobe and 0 or .5)+Vector3.new(0,hasRobe and 0 or .2,0)*modelScale,alpha)
  3251. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(.2,0,hasRobe and 0 or -.5)+Vector3.new(0,hasRobe and 0 or .2,0)*modelScale,alpha)
  3252. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(2.9,0,.8)+Vector3.new(-.2,.4,0)*modelScale,alpha)
  3253. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(2.9,0,-.8)+Vector3.new(.2,.4,0)*modelScale,alpha)
  3254. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(breathing*.04+.7,0,0),alpha)
  3255. end
  3256. elseif state == "fly" then
  3257. hum.PlatformStand = true
  3258. gyro.maxTorque = Vector3.new(1,1,1)*4e6
  3259. vel.maxForce = Vector3.new(1,1,1)*4e5
  3260.  
  3261. local velocity = Vector3.new((kd.d and 1 or 0)+(kd.a and -1 or 0),0,(kd.s and 1 or 0)+(kd.w and -1 or 0))
  3262. velocity = cam.CoordinateFrame:vectorToWorldSpace(velocity)
  3263. local maxspeed = 40-(velocity.magnitude > 0 and velocity.unit.Y*20 or 0)
  3264. if velocity.magnitude > 0 then
  3265. flyspeed = lerp(flyspeed,maxspeed,.1)
  3266. flydir = flydir:Lerp(velocity.unit,.4).unit
  3267. hoverheight = nil
  3268. else
  3269. flyspeed = lerp(flyspeed,0,.3)
  3270. flydir = (flydir*Vector3.new(1,0,1)).unit
  3271. hoverheight = hoverheight or root.Position.Y
  3272. end
  3273. vel.velocity = flydir.unit * flyspeed
  3274. if hoverheight then
  3275. vel.velocity = vel.velocity + Vector3.new(0,hoverheight-root.Position.Y,0)
  3276. end
  3277. gyro.cframe = CFrame.new(Vector3.new(),flydir*Vector3.new(1,0,1))
  3278.  
  3279. rl.CanCollide,ll.CanCollide = true,true
  3280.  
  3281. local wings = math.sin(tick()*80)
  3282. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.15+wings*.3,0),.6)
  3283. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.15-wings*.3,0),.6)
  3284. local alpha = .15
  3285. local flytilt = (flyspeed/maxspeed)
  3286. local tilt = flytilt*-1.4 + math.asin(gyro.cframe:vectorToObjectSpace(flydir).unit.Y)
  3287. local wavey = math.sin(tick()*6)
  3288. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0),alpha)
  3289. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(wavey*.1,hasRobe and 0 or -.08,hasRobe and 0 or .1),alpha)
  3290. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-wavey*.1,hasRobe and 0 or .08,hasRobe and 0 or -.1),alpha)
  3291. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-wavey*.15,-.08,.1),alpha)
  3292. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(wavey*.15,.08,-.1),alpha)
  3293. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt*.8,0,0),alpha)
  3294. end
  3295. end
  3296. end)
  3297. local dance = Instance.new("TextButton", Frame1)
  3298. dance.Size = UDim2.new(0.2, 0, 0.1, 0)
  3299. dance.Position = UDim2.new(0.5, 0, 0.1, 0)
  3300. dance.Text = "Krystal Dance"
  3301. dance.BackgroundColor3 = Color3.new(0, 110, 160)
  3302. dance.BackgroundTransparency = 0.6
  3303. dance.TextColor3 = Color3.new(1, 1, 1)
  3304. dance.MouseButton1Down:connect(function(dance1)
  3305.  
  3306. wait(0)
  3307. Player = game.Players.LocalPlayer
  3308.  
  3309. local count = 0
  3310. local countspeed = 1
  3311. local sine = 0
  3312. local sinespeed = 1
  3313. local angle = nil
  3314. local global_wait = 0
  3315. local showtag = false
  3316.  
  3317.  
  3318. --dance booleans--
  3319. local jerk = false
  3320. local party = false
  3321. local canttouch = false
  3322. local happy = false
  3323. local spin = false
  3324. local thriller = false
  3325. local barrel = false
  3326. local sax = false
  3327. local spooky = false
  3328. local stride = false
  3329. local shuffle = false
  3330. local rock = false
  3331. local gagnam = false
  3332. local snoop = false
  3333. local darude = false
  3334. local taco = false
  3335. ------------------
  3336. --dance accessory--
  3337. local barrelbrick = nil
  3338. local saxtool = nil
  3339. -------------------
  3340. --custom animate--
  3341. local walk = false
  3342. local jump = false
  3343. local sit = false
  3344. local run = false
  3345. ------------------
  3346. --walk keys--
  3347. local W = false
  3348. local A = false
  3349. local S = false
  3350. local D = false
  3351. -------------
  3352. local m = Instance.new("Model",game.Players.LocalPlayer.Character) m.Name = "ModelParts"
  3353. local miniweld = nil
  3354. local rootpart = nil
  3355.  
  3356. local Mouse = nil
  3357. local Animate = nil
  3358. local Music = nil
  3359. local Asset = "http://www.roblox.com/asset/?id="
  3360. local Animating = nil
  3361. local humanoid = nil
  3362. local face = nil
  3363.  
  3364. local head = nil
  3365. local torso = nil
  3366. local ra = nil
  3367. local la = nil
  3368. local rl = nil
  3369. local ll = nil
  3370. local rs = nil
  3371. local ls = nil
  3372. local rh = nil
  3373. local lh = nil
  3374. local neck = nil
  3375. local rj = nil
  3376.  
  3377. local char = nil
  3378. local Hat1 = nil
  3379. local Hat2 = nil
  3380. local a,b = nil
  3381.  
  3382. ----------musics-----------------
  3383. local M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16 = nil
  3384. ---------------------------------
  3385.  
  3386. local mesh,meshids,textureids,w
  3387.  
  3388. function fm(parent,meshid,x,y,z,meshtexture)
  3389. if meshid == "cylinder" then
  3390. mesh = Instance.new("CylinderMesh",parent)
  3391. mesh.Scale = Vector3.new(x,y,z)
  3392. return mesh
  3393. else
  3394. mesh = Instance.new("SpecialMesh",parent)
  3395. if meshid ~= "sphere" then
  3396. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  3397. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  3398. end
  3399. else mesh.MeshType = 3 end
  3400. mesh.Scale = Vector3.new(x,y,z)
  3401. if meshtexture ~= nil then
  3402. if type(meshtexture) == "number" then
  3403. mesh.TextureId = "rbxassetid://"..meshtexture
  3404. else
  3405. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  3406. end
  3407. return mesh
  3408. end
  3409. end
  3410.  
  3411. function P(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  3412. if typee ~= nil then
  3413. c = Instance.new("WedgePart",m)
  3414. else
  3415. c = Instance.new("Part",m)
  3416. end
  3417. c.TopSurface,c.BottomSurface = 0,0
  3418. c.Locked = true
  3419. c.formFactor = "Custom"
  3420. c.Size = Vector3.new(x,y,z)
  3421. if color ~= "random" then
  3422. c.BrickColor = BrickColor.new(color)
  3423. else
  3424. c.BrickColor = BrickColor:random()
  3425. end
  3426. c.Transparency = transparency
  3427. c.CanCollide = cancollide
  3428. if anchored ~= nil then
  3429. c.Anchored = anchored
  3430. end
  3431. if parent ~= nil then
  3432. c.Parent = parent
  3433. end
  3434. return c
  3435. end
  3436.  
  3437. function We(part0,part1,x,y,z,rx,ry,rz,parent)
  3438. w = Instance.new("Motor",m)
  3439. if parent ~= nil then w.Parent = parent end
  3440. w.Part0,w.Part1 = part0,part1
  3441. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  3442. return w
  3443. end
  3444.  
  3445. function SetAnimation(id,humanoid)
  3446. if Animating ~= nil then
  3447. Animating:Stop()
  3448. end
  3449. Animate.AnimationId = Asset .. id
  3450. Animating = humanoid:LoadAnimation(Animate)
  3451. Animating:Play()
  3452. end
  3453.  
  3454. function AnimationStop()
  3455. jerk = false
  3456. party = false
  3457. canttouch = false
  3458. happy = false
  3459. spin = false
  3460. thriller = false
  3461. barrel = false
  3462. sax = false
  3463. spooky = false
  3464. stride = false
  3465. shuffle = false
  3466. rock = false
  3467. gagnam = false
  3468. snoop = false
  3469. darude = false
  3470. taco = false
  3471. if barrelbrick ~= nil then
  3472. barrelbrick:Remove()
  3473. barrelbrick = nil
  3474. end
  3475. if saxtool ~= nil then
  3476. saxtool:Remove()
  3477. saxtool = nil
  3478. end
  3479. if sandstorm ~= nil then
  3480. sandstorm:Remove()
  3481. sandstorm = nil
  3482. end
  3483. end
  3484.  
  3485. local Musical
  3486. function SetMusic(id,volume)
  3487. Musical = Instance.new("Sound",char.Head)
  3488. if volume == nil then
  3489. Musical.Volume = 1
  3490. else
  3491. Musical.Volume = volume
  3492. end
  3493. Musical.Looped = true
  3494. Musical.SoundId = Asset .. id
  3495. return Musical
  3496. end
  3497.  
  3498. function GenerateGui()
  3499. a=Instance.new("ScreenGui")
  3500. a.Name = "KrystalDance By KrystalTeam"
  3501. b=Instance.new("ImageLabel",a)
  3502. b.BackgroundTransparency = 1
  3503. b.Size = UDim2.new(0,250,0,100)
  3504. b.Position = UDim2.new(0,0,1,0)
  3505. b.Image = Asset .. "269467798"
  3506. b.Name = "Logo"
  3507. c=Instance.new("Sound",a)
  3508. c.Name = "Intro"
  3509. c.Volume = 1
  3510. c.SoundId = Asset .. "236146895"
  3511. c.Looped = false
  3512. return a
  3513. end
  3514.  
  3515. function Generate(player)
  3516. char = player.Character
  3517. Hat1 = P(1,1,1,'Black',0,false,false)
  3518. Hat2 = P(1,1,1,'Black',0,false,false)
  3519. wait()
  3520. a=fm(Hat1,1577360,1,1,1,1577349) a.VertexColor = Vector3.new(1,1,1)
  3521. b=fm(Hat2,13640868,1,1,1,18987684) b.VertexColor = Vector3.new(1,1,1)
  3522. wait()
  3523. if char:FindFirstChild("Head") then
  3524. We(Hat1,char.Head,0,0.25,-0.135,0,0,0)
  3525. We(Hat2,char.Head,0,0.8,0,0,0,0)
  3526. if char.head:FindFirstChild("face") ~= nil then
  3527. face = char.head:FindFirstChild("face")
  3528. face.Texture = "rbxasset://textures/face.png"
  3529. end
  3530. c=char.Head:clone()
  3531. c.Name = "FalseHead"
  3532. c.CanCollide = false
  3533. c.Parent = char
  3534. We(c,char.Head,0,0,0,0,0,0)
  3535. char.Head.Transparency = 1
  3536. for i,v in pairs(char:GetChildren()) do
  3537. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  3538. v:Remove()
  3539. end
  3540. if v.ClassName == "BodyColors" then
  3541. v.HeadColor = BrickColor.new("White")
  3542. v.LeftArmColor = BrickColor.new("Really black")
  3543. v.LeftLegColor = BrickColor.new("Really black")
  3544. v.RightArmColor = BrickColor.new("Really black")
  3545. v.RightLegColor = BrickColor.new("Really black")
  3546. v.TorsoColor = BrickColor.new("Really black")
  3547. end
  3548. if v.ClassName == "Part" then
  3549. if v.Name == "Head" or v.Name == "FalseHead" then
  3550. v.BrickColor = BrickColor.new("White")
  3551. else
  3552. v.BrickColor = BrickColor.new("Really black")
  3553. end
  3554. end
  3555. end
  3556. ----------musics---------------
  3557. M1=SetMusic(168007346)
  3558. M2=SetMusic(144901116)
  3559. M3=SetMusic(168570436)
  3560. M4=SetMusic(142435409)
  3561. M5=SetMusic(131525189)
  3562. M6=SetMusic(133196268)
  3563. M7=SetMusic(130791919)
  3564. M8=SetMusic(130794684)
  3565. M9=SetMusic(155313239)
  3566. M10=SetMusic(158036870)
  3567. M11=SetMusic(145262991)
  3568. M12=SetMusic(151430448)
  3569. M13=SetMusic(130844430)
  3570. M14=SetMusic(172388329)
  3571. M15=SetMusic(179534184)
  3572. M16=SetMusic(142295308)
  3573. -------------------------------
  3574.  
  3575. if char:FindFirstChild("HumanoidRootPart") ~= nil then
  3576. rootpart = char:FindFirstChild("HumanoidRootPart")
  3577. end
  3578. if showtag == true then
  3579. local bbg = Instance.new("BillboardGui",c)
  3580. bbg.Adornee = c
  3581. bbg.Name = "satuttava"
  3582. bbg.Size = UDim2.new(6,0,2,0)
  3583. bbg.StudsOffset = Vector3.new(0,2,0)
  3584. local box = Instance.new("TextLabel",bbg)
  3585. box.Size = UDim2.new(1,0,1,0)
  3586. box.BackgroundColor = BrickColor.new("White")
  3587. box.TextColor3 = Color3.new(255,0,0)
  3588. box.TextStrokeTransparency = 0.5
  3589. box.Font = 3
  3590. box.Text = Player.Name
  3591. box.BackgroundTransparency = 1
  3592. box.Position = UDim2.new(0,0,0,0)
  3593. box.TextScaled = true
  3594. end
  3595. if char:FindFirstChild("Humanoid") ~= nil then
  3596. char:FindFirstChild("Humanoid").MaxHealth = (100*100*100*100)*100
  3597. wait()
  3598. char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").MaxHealth
  3599. --char:FindFirstChild("Humanoid").Name = game.Players.LocalPlayer.Name
  3600. humanoid = char:FindFirstChild("Humanoid")
  3601. if humanoid:FindFirstChild("Animator") ~= nil then
  3602. humanoid:FindFirstChild("Animator"):Remove()
  3603. --Instance.new("Animator",humanoid)
  3604. end
  3605. if char:FindFirstChild("Animate") ~= nil then
  3606. char:FindFirstChild("Animate"):Remove()
  3607. end
  3608. end
  3609. Mouse = player:GetMouse()
  3610. Music = Instance.new("Sound",char.Head)
  3611. Music.Volume = 1
  3612. Music.Looped = true
  3613. Music.SoundId = Asset
  3614. Animate = Instance.new("Animation",char.Head)
  3615. Animate.AnimationId = Asset
  3616.  
  3617.  
  3618.  
  3619. head = char:FindFirstChild("Head")
  3620. torso = char:FindFirstChild("Torso")
  3621. ra = char:findFirstChild("Right Arm")
  3622. la = char:findFirstChild("Left Arm")
  3623. rl = char:findFirstChild("Right Leg")
  3624. ll = char:findFirstChild("Left Leg")
  3625. rs = torso:findFirstChild("Right Shoulder")
  3626. ls = torso:findFirstChild("Left Shoulder")
  3627. rh = torso:findFirstChild("Right Hip")
  3628. lh = torso:findFirstChild("Left Hip")
  3629. neck = torso:findFirstChild("Neck")
  3630. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  3631.  
  3632. state = humanoid:GetState()
  3633. local ca = nil
  3634. ca=GenerateGui()
  3635. ca.Parent = player.PlayerGui
  3636. if ca:FindFirstChild("Logo") ~= nil then
  3637. ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true)
  3638. if ca:FindFirstChild("Intro") ~= nil then
  3639. ca:FindFirstChild("Intro"):Play()
  3640. coroutine.resume(coroutine.create(function()
  3641. for i=0,30 do
  3642. ca:FindFirstChild("Intro").Volume = 1/(i/2)
  3643. wait(0.5)
  3644. if i >= 30 then
  3645. break
  3646. end
  3647. end
  3648. end))
  3649. end
  3650. end
  3651.  
  3652. if humanoid ~= nil then
  3653. humanoid.Changed:connect(function(pro)
  3654. if pro == "MoveDirection" or pro == "Jump" then
  3655. if Music.IsPlaying == true then
  3656. AnimationStop()
  3657. end
  3658. end
  3659. end)
  3660. humanoid.Died:connect(function()
  3661. AnimationStop()
  3662. end)
  3663.  
  3664. Mouse.KeyUp:connect(function(key)
  3665. if key == "w" then
  3666. W = false
  3667. end
  3668. if key == "a" then
  3669. A = false
  3670. end
  3671. if key == "s" then
  3672. S = false
  3673. end
  3674. if key == "d" then
  3675. D = false
  3676. end
  3677. if string.byte(key) == 48 then
  3678. run = false
  3679. end
  3680. end)
  3681.  
  3682. Mouse.KeyDown:connect(function(key)
  3683. if key == "w" then
  3684. W = true
  3685. AnimationStop()
  3686. end
  3687. if key == "a" then
  3688. A = true
  3689. AnimationStop()
  3690. end
  3691. if key == "s" then
  3692. S = true
  3693. AnimationStop()
  3694. end
  3695. if key == "d" then
  3696. D = true
  3697. AnimationStop()
  3698. end
  3699. end)
  3700.  
  3701.  
  3702.  
  3703. Mouse.KeyDown:connect(function(key)
  3704. KeyUsed(key)
  3705. end)
  3706. end
  3707. end
  3708. print'KrystalDance By: KrystalTeam as fully Loaded!'
  3709. end
  3710.  
  3711. function KeyUsed(key)
  3712. if humanoid ~= nil then
  3713. if humanoid.Health > 0 then
  3714. if string.byte(key) == 32 then
  3715. jump = true
  3716. AnimationStop()
  3717. --sit = false
  3718. end
  3719. if string.byte(key) == 50 then
  3720. AnimationStop()
  3721. if sit == true then
  3722. sit = false
  3723. else
  3724. sit = true
  3725. end
  3726. end
  3727. if string.byte(key) == 48 then
  3728. run = true
  3729. end
  3730. if W == false and A == false and S == false and D == false and jump == false and sit == false then
  3731. if key == "Q" or key == "q" then
  3732. AnimationStop()
  3733. canttouch = true
  3734. M1:Play()
  3735. end
  3736. if key == "E" or key == "e" then
  3737. AnimationStop()
  3738. party = true
  3739. M2:Play()
  3740. end
  3741. if key == "R" or key == "r" then
  3742. AnimationStop()
  3743. jerk = true
  3744. M3:Play()
  3745. end
  3746. if key == "T" or key == "t" then
  3747. AnimationStop()
  3748. happy = true
  3749. M4:Play()
  3750. end
  3751. if key == "Y" or key == "y" then
  3752. AnimationStop()
  3753. spin = true
  3754. M5:Play()
  3755. end
  3756. if key == "U" or key == "u" then
  3757. AnimationStop()
  3758. thriller = true
  3759. M6:Play()
  3760. end
  3761. if key == "F" or key == "f" then
  3762. AnimationStop()
  3763. barrel = true
  3764. M7:Play()
  3765. if barrelbrick == nil and barrel == true then
  3766. barrelbrick = P(2,2,1,'Black',0,false,false)
  3767. a=fm(barrelbrick,29873142,1.1,0.8,1.1,31082268) a.VertexColor = Vector3.new(1,1,1)
  3768. We(barrelbrick,char.Torso,0,-0.2,0,0,0,0)
  3769. end
  3770. end
  3771. if key == "P" or key == "p" then
  3772. AnimationStop()
  3773. sax = true
  3774. M8:Play()
  3775. if saxtool == nil and sax == true then
  3776. saxtool = P(1,2,2,'Black',0,false,false)
  3777. a=fm(saxtool,44410178,1.5,1.5,1.5,44410320) a.VertexColor = Vector3.new(1,1,1)
  3778. b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0)
  3779. b.C1 = CFrame.new(0.5, -0.9, -0.3) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8)
  3780. end
  3781. end
  3782. if key == "G" or key == "g" then
  3783. AnimationStop()
  3784. spooky = true
  3785. M9:Play()
  3786. end
  3787. if key == "H" or key == "h" then
  3788. AnimationStop()
  3789. stride = true
  3790. M10:Play()
  3791. end
  3792. if key == "J" or key == "j" then
  3793. AnimationStop()
  3794. shuffle = true
  3795. M11:Play()
  3796. end
  3797. if key == "K" or key == "k" then
  3798. AnimationStop()
  3799. rock = true
  3800. M12:Play()
  3801. end
  3802. if key == "L" or key == "l" then
  3803. AnimationStop()
  3804. gagnam = true
  3805. M13:Play()
  3806. end
  3807. if key == "Z" or key == "z" then
  3808. AnimationStop()
  3809. snoop = true
  3810. M14:Play()
  3811. end
  3812. if key == "X" or key == "x" then
  3813. AnimationStop()
  3814. darude = true
  3815. M15:Play()
  3816. if sandstorm == nil and darude == true then
  3817. sandstorm = P(1,1,1,'Black',0,false,false)
  3818. sandstorm.Transparency = 1
  3819. a=Instance.new("Smoke",sandstorm)
  3820. a.Color = Color3.new(255/255,255/255,175/255)
  3821. a.Size = 0.4
  3822. a.RiseVelocity = 3
  3823. a.Opacity = 0.75
  3824. b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0)
  3825. b.C1 = CFrame.new(0, -2, 0)
  3826. end
  3827. end
  3828. if key == "C" or key == "c" then
  3829. AnimationStop()
  3830. taco = true
  3831. M16:Play()
  3832. end
  3833. end
  3834. end
  3835. end
  3836. end
  3837.  
  3838. Generate(Player)
  3839.  
  3840. game:service'RunService'.Stepped:connect(function()
  3841. count = (count % 100) + countspeed
  3842. angle = math.pi * math.sin(math.pi*2/100*count)
  3843. countspeed = 1
  3844.  
  3845. state = humanoid:GetState()
  3846. if state ~= Enum.HumanoidStateType.Freefall then
  3847. jump = false
  3848. else
  3849. jump = true
  3850. sit = false
  3851. AnimationStop()
  3852. end
  3853.  
  3854. local mesh1anan = Instance.new("SpecialMesh")
  3855. mesh1anan.MeshType = Enum.MeshType.FileMesh
  3856. mesh1anan.Scale = Vector3.new(3,3,3)
  3857. mesh1anan.MeshId = "http://www.roblox.com/asset/?id=14846869"
  3858. mesh1anan.TextureId = "http://www.roblox.com/asset/?id=14846834"
  3859. if taco == true then
  3860. if char ~= nil then
  3861. local locationanan = char:GetModelCFrame()
  3862. local tacoa = Instance.new("Part")
  3863. tacoa.CanCollide = false
  3864. tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  3865. local meshanananan = mesh1anan:clone()
  3866. meshanananan.Parent = tacoa
  3867. meshanananan.Scale = Vector3.new(math.random()*20,math.random()*20,math.random()*20)
  3868. tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
  3869. tacoa.Parent = workspace
  3870. game:GetService("Debris"):AddItem(tacoa,4)
  3871. end
  3872. end
  3873.  
  3874.  
  3875.  
  3876.  
  3877. if canttouch == false then
  3878. M1:Stop()
  3879. end
  3880. if party == false then
  3881. M2:Stop()
  3882. end
  3883. if jerk == false then
  3884. M3:Stop()
  3885. end
  3886. if happy == false then
  3887. M4:Stop()
  3888. end
  3889. if spin == false then
  3890. M5:Stop()
  3891. end
  3892. if thriller == false then
  3893. M6:Stop()
  3894. end
  3895. if barrel == false then
  3896. M7:Stop()
  3897. end
  3898. if sax == false then
  3899. M8:Stop()
  3900. end
  3901. if spooky == false then
  3902. M9:Stop()
  3903. end
  3904. if stride == false then
  3905. M10:Stop()
  3906. end
  3907. if shuffle == false then
  3908. M11:Stop()
  3909. end
  3910. if rock == false then
  3911. M12:Stop()
  3912. end
  3913. if gagnam == false then
  3914. M13:Stop()
  3915. end
  3916. if snoop == false then
  3917. M14:Stop()
  3918. end
  3919. if darude == false then
  3920. M15:Stop()
  3921. end
  3922. if taco == false then
  3923. M16:Stop()
  3924. end
  3925.  
  3926. if run == true and sit == false then
  3927. humanoid.WalkSpeed = 25
  3928. elseif sit == true then
  3929. humanoid.WalkSpeed = 0
  3930. else
  3931. humanoid.WalkSpeed = 16
  3932. end
  3933.  
  3934. if global_wait == 380 then global_wait = 0 end
  3935.  
  3936. if (W == false or A == false or S == false or D == false) and jump == false and sit == false then
  3937. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  3938. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  3939. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  3940. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  3941. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0)
  3942. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  3943. end
  3944.  
  3945.  
  3946. if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  3947. local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0))
  3948. local hitz,enz = workspace:FindPartOnRay(ray, char)
  3949. if hitz then
  3950. if rootpart:FindFirstChild("Weld") == nil then
  3951. miniweld = Instance.new("Weld", rootpart)
  3952. miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame)
  3953. miniweld.Part0 = hitz
  3954. miniweld.Part1 = rootpart
  3955. humanoid.PlatformStand = true
  3956. end
  3957. end
  3958. else
  3959. if rootpart:FindFirstChild("Weld") ~= nil then
  3960. rootpart:FindFirstChild("Weld"):Destroy()
  3961. humanoid.PlatformStand = false
  3962. end
  3963. end
  3964.  
  3965. if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  3966. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15)
  3967. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15)
  3968. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15)
  3969. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15)
  3970. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  3971. rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  3972. end
  3973.  
  3974. if jump == true and sit == false then
  3975. countspeed = 2
  3976. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  3977. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  3978. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  3979. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  3980. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  3981. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  3982. end
  3983.  
  3984. if (W == true or A == true or S == true or D == true) and jump == false and sit == false then
  3985. if run == true then
  3986. countspeed = 4
  3987. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  3988. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  3989. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  3990. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  3991. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  3992. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0)
  3993. else
  3994. countspeed = 2
  3995. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  3996. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  3997. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  3998. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  3999. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  4000. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  4001. end
  4002. end
  4003.  
  4004. if W == false and A == false and S == false and D == false and jump == false and sit == false then
  4005. if jerk == true and jump == false and sit == false then
  4006. countspeed = 2
  4007. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/4)
  4008. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, -angle/4)
  4009. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(angle*0.5, 0, -math.abs(angle*0.15))
  4010. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(-angle*0.5, 0, math.abs(angle*0.15))
  4011. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  4012. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  4013. elseif party == true and jump == false and sit == false then
  4014. countspeed = 4
  4015. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
  4016. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
  4017. ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10)
  4018. rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi + angle/10, 0, 0 + angle/10)
  4019. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0)
  4020. rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4021. elseif canttouch == true and jump == false and sit == false then
  4022. countspeed = 2
  4023. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/12)
  4024. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/12)
  4025. lh.C1 = CFrame.new(0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/8)
  4026. rh.C1 = CFrame.new(-0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/8)
  4027. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  4028. rj.C0 = CFrame.new(angle/4, -0.3 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4029. elseif happy == true and jump == false and sit == false then
  4030. countspeed = 4
  4031. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8)
  4032. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8)
  4033. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10)
  4034. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0 + angle/10)
  4035. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15)
  4036. rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4037. elseif spin == true and jump == false and sit == false then
  4038. global_wait = (global_wait % 360) + 4
  4039. countspeed = 4
  4040. ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10)
  4041. rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10)
  4042. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10)
  4043. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0 + angle/10)
  4044. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4045. rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  4046. elseif thriller == true and jump == false and sit == false then
  4047. countspeed = 2
  4048. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15)
  4049. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15)
  4050. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15)
  4051. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15)
  4052. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0)
  4053. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50)
  4054. elseif barrel == true and jump == false and sit == false then
  4055. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  4056. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  4057. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  4058. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  4059. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4060. rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle)
  4061. elseif sax == true and jump == false and sit == false then
  4062. countspeed = 2
  4063. ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30))
  4064. rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30))
  4065. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30))
  4066. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30))
  4067. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4068. rj.C0 = CFrame.new(0, -math.abs(angle*0.05), math.abs(angle*0.025)) * CFrame.Angles(math.pi/2 + math.abs(angle/20), math.pi, 0)
  4069. elseif spooky == true and jump == false and sit == false then
  4070. countspeed = 3
  4071. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5)
  4072. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5)
  4073. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16)
  4074. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16)
  4075. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/12, math.pi, 0)
  4076. rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  4077. elseif stride == true and jump == false and sit == false then
  4078. countspeed = 2.5
  4079. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8)
  4080. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8)
  4081. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  4082. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  4083. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4084. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0)
  4085. elseif shuffle == true and jump == false and sit == false then
  4086. countspeed = 2
  4087. ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5)
  4088. rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5)
  4089. lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  4090. rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  4091. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  4092. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0)
  4093. elseif rock == true and jump == false and sit == false then
  4094. countspeed = 4
  4095. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2)
  4096. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2)
  4097. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32)
  4098. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32)
  4099. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4100. rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4101. elseif gagnam == true and jump == false and sit == false then
  4102. countspeed = 4
  4103. ls.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20)
  4104. rs.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20)
  4105. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  4106. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  4107. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  4108. rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4109. elseif snoop == true and jump == false and sit == false then
  4110. countspeed = 2
  4111. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4)
  4112. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4)
  4113. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  4114. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  4115. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0)
  4116. rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0)
  4117. elseif darude == true and jump == false and sit == false then
  4118. countspeed = 3
  4119. ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5)
  4120. rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3)
  4121. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  4122. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5)
  4123. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  4124. rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0)
  4125. elseif taco == true and jump == false and sit == false then
  4126. countspeed = 4
  4127. global_wait = (global_wait % 360) + 4
  4128. ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  4129. rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  4130. lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  4131. rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  4132. neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0)
  4133. rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  4134. end
  4135. end
  4136. end)
  4137.  
  4138. end)
  4139. local giantnoob = Instance.new("TextButton", Frame1)
  4140. giantnoob.Size = UDim2.new(0.2, 0, 0.1, 0)
  4141. giantnoob.Position = UDim2.new(0.75, 0, 0.1, 0)
  4142. giantnoob.Text = "Giant Noob"
  4143. giantnoob.BackgroundColor3 = Color3.new(0, 110, 160)
  4144. giantnoob.BackgroundTransparency = 0.6
  4145. giantnoob.TextColor3 = Color3.new(1, 1, 1)
  4146. giantnoob.MouseButton1Down:connect(function(giantnoob1)
  4147.  
  4148. function Part(Par, Anc, Colli, Tran, Ref, Col, Siz)
  4149. local p = Instance.new("Part")
  4150. p.formFactor = "Custom"
  4151. p.TopSurface = 0
  4152. p.BottomSurface = 0
  4153. p.Transparency = Tran
  4154. p.Reflectance = Ref
  4155. p.Anchored = Anc
  4156. p.CanCollide = Colli
  4157. p.BrickColor = Col
  4158. p.Size = Siz
  4159. p.Locked = true
  4160. p.Parent = Par
  4161. p:BreakJoints()
  4162. return p
  4163. end
  4164. function Weld(P0, P1, C0, C1)
  4165. local w = Instance.new("Weld")
  4166. w.Part0 = P0
  4167. w.Part1 = P1
  4168. if C0 then
  4169. w.C0 = C0
  4170. end
  4171. if C1 then
  4172. w.C1 = C1
  4173. end
  4174. w.Parent = P0
  4175. return w
  4176. end
  4177. V3 = Vector3.new
  4178. C3 = Color3.new
  4179. BN = BrickColor.new
  4180. CN = CFrame.new
  4181. CA = CFrame.Angles
  4182. MR = math.rad
  4183. MRA = math.random
  4184. MP = math.pi
  4185. MH = math.huge
  4186. UD = UDim2.new
  4187. Asset = "http://www.roblox.com/asset/?id="
  4188. Noob = nil
  4189. function MakeMotor(torso, p1, c0, c1)
  4190. local mot = Instance.new("Motor6D")
  4191. mot.C0 = c0
  4192. mot.C1 = c1
  4193. mot.Part0 = torso
  4194. mot.Part1 = p1
  4195. mot.Parent = torso
  4196. return mot
  4197. end
  4198. function Set(tab)
  4199. for _,v in pairs(tab) do
  4200. local motor = v[1]
  4201. local vel = v[2]
  4202. local des = v[3]
  4203. motor.MaxVelocity = vel
  4204. motor.DesiredAngle = des
  4205. end
  4206. end
  4207. function Animate(Hum, RSH, LSH, RH, LH)
  4208. local pose = "Standing"
  4209. local function sit()
  4210. pose = "Seated"
  4211. end
  4212. local function jump()
  4213. pose = "Jumping"
  4214. end
  4215. local function died()
  4216. pose = "Dead"
  4217. end
  4218. local function falling()
  4219. pose = "Falling"
  4220. end
  4221. local function climbing()
  4222. pose = "Climbing"
  4223. end
  4224. local function run(speed)
  4225. if speed > 0.5 then
  4226. pose = "Running"
  4227. else
  4228. pose = "Standing"
  4229. end
  4230. end
  4231. local function move()
  4232. if pose == "Seated" then
  4233. Set({{RSH, 0.15, math.pi/2}, {LSH, 0.15, -math.pi/2}, {LH, 0.15, math.pi/2}, {RH, 0.15, -math.pi/2}})
  4234. return
  4235. end
  4236. if pose == "Jumping" then
  4237. Set({{RSH, 0.3, math.pi}, {LSH, 0.3, -math.pi}, {LH, 0.3, 0}, {RH, 0.3, 0}})
  4238. return
  4239. end
  4240. if pose == "Standing" then
  4241. Set({{RSH, 0.25, 0}, {LSH, 0.25, 0}, {LH, 0.25, 0}, {RH, 0.25, 0}})
  4242. return
  4243. end
  4244. if pose == "Falling" then
  4245. Set({{RSH, 0.35, math.pi}, {LSH, 0.35, -math.pi}, {LH, 0.35, 0}, {RH, 0.35, 0}})
  4246. return
  4247. end
  4248. if pose == "Running" then
  4249. Set({{RSH, 0.2, -0.8}, {LSH, 0.2, 0.8}, {LH, 0.2, 0}, {RH, 0.2, 0}})
  4250. elseif pose == "Climbing" then
  4251. Set({{RSH, 0.35, 2.8}, {LSH, 0.35, -2.8}, {LH, 0.35, 0.1}, {RH, 0.35, 0.1}})
  4252. end
  4253. end
  4254. Hum.Jumping:connect(jump)
  4255. Hum.Running:connect(run)
  4256. Hum.Seated:connect(sit)
  4257. Hum.Died:connect(died)
  4258. Hum.FreeFalling:connect(falling)
  4259. Hum.Climbing:connect(climbing)
  4260. coroutine.resume(coroutine.create(function()
  4261. while pose ~= "Dead" do
  4262. wait(0.04)
  4263. move()
  4264. end
  4265. end))
  4266. end
  4267. function MakeNoob(pos, scale)
  4268. local Nub = Instance.new("Model")
  4269. Nub.Name = "Cannoneer nub"
  4270. local Torso = Part(Nub, false, false, 0, 0, BN("Bright blue"), V3(2*scale, 2*scale, 1*scale))
  4271. Torso.Name = "Torso"
  4272. local Head = Part(Nub, false, false, 0, 0, BN("Bright yellow"), V3(2*scale, 1*scale, 1*scale))
  4273. Head.Name = "Head"
  4274. local Neck = MakeMotor(Torso, Head, CN(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CN(0, -0.5*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  4275. local HeadMesh = Instance.new("SpecialMesh",Head)
  4276. HeadMesh.Scale = V3(1.25, 1.25, 1.25)
  4277. local Face = Instance.new("Decal",Head)
  4278. Face.Face = "Front"
  4279. Face.Texture = Asset..(13038247)
  4280. local Rarm = Part(Nub, false, false, 0, 0, BN("Bright yellow"), V3(1*scale, 2*scale, 1*scale))
  4281. Rarm.Name = "Right Arm"
  4282. local Larm = Part(Nub, false, false, 0, 0, BN("Bright yellow"), V3(1*scale, 2*scale, 1*scale))
  4283. Larm.Name = "Left Arm"
  4284. local Rleg = Part(Nub, false, true, 0, 0, BN("Br. yellowish green"), V3(1*scale, 2*scale, 1*scale))
  4285. Rleg.Name = "Right Leg"
  4286. local Lleg = Part(Nub, false, true, 0, 0, BN("Br. yellowish green"), V3(1*scale, 2*scale, 1*scale))
  4287. Lleg.Name = "Left Leg"
  4288. local RSH = MakeMotor(Torso, Rarm, CN(1*scale, 0.5*scale, 0) * CA(0, MR(90), 0), CN(-0.5*scale, 0.5*scale, 0) * CA(0, MR(90), 0))
  4289. local LSH = MakeMotor(Torso, Larm, CN(-1*scale, 0.5*scale, 0) * CA(0, MR(-90), 0), CN(0.5*scale, 0.5*scale, 0) * CA(0, MR(-90), 0))
  4290. local RH = MakeMotor(Torso, Rleg, CN(0.5*scale, -1*scale, 0) * CA(0, MR(-90), 0), CN(0, 1*scale, 0) * CA(0, MR(-90), 0))
  4291. local LH = MakeMotor(Torso, Lleg, CN(-0.5*scale, -1*scale, 0) * CA(0, MR(90), 0), CN(0, 1*scale, 0) * CA(0, MR(90), 0))
  4292. local Hum = Instance.new("Humanoid")
  4293. local Speed = 14+(2*scale)
  4294. Hum.Parent = Nub
  4295. Hum.Died:connect(function()
  4296. wait(6)
  4297. Nub:remove()
  4298. wait(5)
  4299. MakeNoob(pos, scale)
  4300. end)
  4301. Nub.Parent = workspace
  4302. Nub:MakeJoints()
  4303. Hum.MaxHealth = 50+(scale*70)
  4304. Hum.Health = 50+(scale*70)
  4305. Nub:MoveTo(pos)
  4306. coroutine.resume(coroutine.create(function()
  4307. repeat wait()
  4308. Hum.Health = Hum.MaxHealth
  4309. until Hum.Health >= Hum.MaxHealth-1
  4310. end))
  4311. Animate(Hum,RSH,LSH,RH,LH)
  4312. local Char = Nub
  4313. local necko = CN(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4314. local ShootColors = {"Bright yellow", "New Yeller", "Bright orange", "Neon orange", "Really red", "Bright red"}
  4315. local Attacking = false
  4316. local Accuracy = 5
  4317. local Debounce = true
  4318. local Hurt = false
  4319. local Damage = {15,42}
  4320. local Selected = false
  4321. local ContentProvider = game:GetService("ContentProvider")
  4322. local function RC(Pos, Dir, Max, Ignore)
  4323. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  4324. end
  4325. local function RayC(Start, En, MaxDist, Ignore)
  4326. return RC(Start, (En - Start), MaxDist, Ignore)
  4327. end
  4328. local function ComputePos(pos1, pos2)
  4329. return CN(pos1, V3(pos2.x, pos1.y, pos2.z))
  4330. end
  4331. local function DetectSurface(pos, part)
  4332. local surface = nil
  4333. local pospos = part.CFrame
  4334. local pos2 = pospos:pointToObjectSpace(pos)
  4335. local siz = part.Size
  4336. local shaep = part.Shape
  4337. if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
  4338. surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)}
  4339. else
  4340. if pos2.Y > ((siz.Y/2)-0.04) then
  4341. surface = {"Top", CA(0, 0, 0)}
  4342. elseif pos2.Y < -((siz.Y/2)-0.04) then
  4343. surface = {"Bottom", CA(-MP, 0, 0)}
  4344. elseif pos2.X > ((siz.X/2)-0.04) then
  4345. surface = {"Right", CA(0, 0, MR(-90))}
  4346. elseif pos2.X < -((siz.X/2)-0.04) then
  4347. surface = {"Left", CA(0, 0, MR(90))}
  4348. elseif pos2.Z > ((siz.Z/2)-0.04) then
  4349. surface = {"Back", CA(MR(90), 0, 0)}
  4350. elseif pos2.Z < -((siz.Z/2)-0.04) then
  4351. surface = {"Front", CA(MR(-90), 0, 0)}
  4352. end
  4353. end
  4354. return surface
  4355. end
  4356. local function waitChild(n, p)
  4357. local c = p:findFirstChild(n)
  4358. if c then return c end
  4359. while true do
  4360. c = p.ChildAdded:wait()
  4361. if c.Name == n then return c end
  4362. end
  4363. end
  4364. local function Notime(func)
  4365. coroutine.resume(coroutine.create(function()
  4366. func()
  4367. end))
  4368. end
  4369. RSH.Part0 = Torso
  4370. LSH.Part0 = Torso
  4371. RH.Part0 = Torso
  4372. LH.Part0 = Torso
  4373. local Add = {
  4374. Mesh = function(P, ID, Scale, Tex)
  4375. local m = Instance.new("SpecialMesh")
  4376. m.MeshType = "FileMesh"
  4377. m.MeshId = ID or ""
  4378. m.Scale = Scale or V3(1, 1, 1)
  4379. m.TextureId = Tex or ""
  4380. m.Parent = P
  4381. return m
  4382. end,
  4383. Sphere = function(P, Scale)
  4384. local m = Instance.new("SpecialMesh")
  4385. m.MeshType = "Sphere"
  4386. m.Scale = Scale or V3(1, 1, 1)
  4387. m.Parent = P
  4388. return m
  4389. end
  4390. }
  4391. local Sounds = {
  4392. Shoot = {Id = "http://www.roblox.com/asset/?id=2697431", Pitch = 0.3, Volume = 0.5},
  4393. Boom = {Id = "http://www.roblox.com/asset/?id=2692806", Pitch = 0.55, Volume = 0.4},
  4394. Slash = {Id = "rbxasset://sounds//swordslash.wav", Pitch = 0.5, Volume = 0.5},
  4395. Hit = {Id = "http://www.roblox.com/asset/?id=2801263", Pitch = 0.85, Volume = 0.35},
  4396. Reload = {Id = "rbxasset://sounds\\metal.ogg", Pitch = 1, Volume = 0.45},
  4397. }
  4398. for _,v in pairs(Sounds) do
  4399. ContentProvider:Preload(v.Id)
  4400. end
  4401. local function PlaySound(Sound, bool)
  4402. local s = Instance.new("Sound")
  4403. s.Looped = false
  4404. s.Volume = Sound.Volume
  4405. s.SoundId = Sound.Id
  4406. if bool then
  4407. s.Pitch = MRA((Sound.Pitch*0.75)*1000, (Sound.Pitch*1.15)*1000)/1000
  4408. else
  4409. s.Pitch = Sound.Pitch
  4410. end
  4411. s.Parent = Torso
  4412. s:play()
  4413. Notime(function()
  4414. wait(0.5)
  4415. s:remove()
  4416. end)
  4417. end
  4418. local function GetParts(pos, dist)
  4419. local parts = {}
  4420. local function o(p)
  4421. for _,v in pairs(p:children()) do
  4422. if v:IsA("BasePart") then
  4423. if (pos - v.Position).magnitude <= dist then
  4424. table.insert(parts, {v, (pos - v.Position).magnitude, v.Anchored})
  4425. end
  4426. end
  4427. o(v)
  4428. end
  4429. end
  4430. o(workspace)
  4431. return parts
  4432. end
  4433. local function GetHum(P)
  4434. for _,v in pairs(P:children()) do
  4435. if v:IsA("Humanoid") then
  4436. if v.Health > 0 then
  4437. return v
  4438. end
  4439. end
  4440. end
  4441. end
  4442. local function GetGroup(Pos, Distance, Hit)
  4443. local tab = {}
  4444. for _,v in pairs(workspace:children()) do
  4445. local h = GetHum(v)
  4446. local t = v:findFirstChild("Torso")
  4447. if h and t and v ~= Hit.Parent then
  4448. if (t.Position - Pos).magnitude <= Distance then
  4449. table.insert(tab, {h, v, (t.Position - Pos).magnitude})
  4450. end
  4451. end
  4452. end
  4453. if Hit then
  4454. local h = GetHum(Hit.Parent)
  4455. if h then
  4456. table.insert(tab, {h, Hit.Parent, 0})
  4457. end
  4458. end
  4459. return tab
  4460. end
  4461. local Model = Instance.new("Model")
  4462. Model.Name = "Hand Cannon"
  4463. local FTorso = Part(Model, false, false, 1, 0, Torso.BrickColor, V3(2*scale, 2*scale, 1*scale))
  4464. local FW = Weld(Torso, FTorso)
  4465. local RAB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  4466. local LAB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  4467. local RLB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  4468. local LLB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  4469. local RABW = Weld(Torso, RAB, CN(), CN(-1.5*scale, -0.5*scale, 0))
  4470. local LABW = Weld(Torso, LAB, CN(), CN(1.5*scale, -0.5*scale, 0))
  4471. local RLBW = Weld(Torso, RLB, CN(), CN(-0.5*scale, 1*scale, 0))
  4472. local LLBW = Weld(Torso, LLB, CN(), CN(0.5*scale, 1*scale, 0))
  4473. local RAW = Weld(RAB, nil, CN(), CN(0, 0.5*scale, 0))
  4474. local LAW = Weld(LAB, nil, CN(), CN(0, 0.5*scale, 0))
  4475. local RLW = Weld(RLB, nil, CN(), CN(0, 1*scale, 0))
  4476. local LLW = Weld(LLB, nil, CN(), CN(0, 1*scale, 0))
  4477. local TW = Weld(Torso, nil, CN(0.7*scale, 0.8*scale, 1.2*scale), CA(0, MR(180), MR(55)))
  4478. local Weapon = Instance.new("Model")
  4479. Weapon.Name = "Cannon"
  4480. local HB = Part(Weapon, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  4481. local HBW = Weld(Rarm, HB, CN(0, -0.7*scale, 0), CA(0, MR(90), MR(90)))
  4482. local HW = Weld(HB, nil)
  4483. local Handle = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(0.5*scale, 0.5*scale, 0.3*scale))
  4484. Add.Mesh(Handle, "http://www.roblox.com/asset/?id=3270017", V3(1*scale, 0.7*scale, 2.2*scale), "")
  4485. TW.Part1 = Handle
  4486. local Main = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(1.5*scale, 1.5*scale, 3*scale))
  4487. Add.Mesh(Main, "http://www.roblox.com/asset/?id=3270017", V3(1.6*scale, 1.6*scale, 15*scale), "")
  4488. Weld(Handle, Main, CA(0, MR(90), MR(90)), CN(1*scale, 0, 0.2*scale))
  4489. local Main2 = Part(Weapon, false, false, 0, 0, BN("Gun metallic"), V3(1*scale, 1*scale, 1.5*scale))
  4490. Add.Mesh(Main2, "http://www.roblox.com/asset/?id=3270017", V3(1.2*scale, 1.2*scale, 8*scale), "")
  4491. Weld(Main, Main2, CN(), CN(0, 0, 1.7*scale))
  4492. local Handle2 = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(0.5*scale, 0.5*scale, 0.3*scale))
  4493. Add.Mesh(Handle2, "http://www.roblox.com/asset/?id=3270017", V3(0.7*scale, 0.8*scale, 2.2*scale), "")
  4494. Weld(Main2, Handle2, CA(0, MR(90), MR(90)), CN(-0.65*scale, 0, 0))
  4495. local Tip = Part(Weapon, false, false, 0, 0, BN("Earth yellow"), V3(1.6*scale, 1.6*scale, 0.6*scale))
  4496. Add.Sphere(Tip, V3(1.05, 1.05, 1))
  4497. Weld(Main, Tip, CN(), CN(0, 0, -1.15*scale))
  4498. local Tip4 = Part(Weapon, false, false, 0, 0, BN("Black"), V3(1.2*scale, 1.2*scale, 0.3*scale))
  4499. Add.Mesh(Tip4, "http://www.roblox.com/asset/?id=3270017", V3(1.7*scale, 1.7*scale, 10*scale), "")
  4500. Weld(Main, Tip4, CN(), CN(0, 0, -0.15*scale))
  4501. for i = 1.3, 1.45, 0.1 do
  4502. local Tip3 = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(1.2*scale, 1.2*scale, 0.3*scale))
  4503. Add.Mesh(Tip3, "http://www.roblox.com/asset/?id=3270017", V3(i*scale, i*scale, 2*scale), "")
  4504. Weld(Main2, Tip3, CN(), CN(0, 0, 0.6*scale))
  4505. end
  4506. for i = -0.95, 0.66, 1.55 do
  4507. local Tip3 = Part(Weapon, false, false, 0, 0, BN("Dark Curry"), V3(1.2*scale, 1.2*scale, 0.3*scale))
  4508. Add.Mesh(Tip3, "http://www.roblox.com/asset/?id=3270017", V3(1.65*scale, 1.65*scale, 3*scale), "")
  4509. Weld(Main, Tip3, CN(), CN(0, 0, i*scale))
  4510. end
  4511. for i = 1.3, 1.5, 0.1 do
  4512. local Tip2 = Part(Weapon, false, false, 0, 0, BN("Earth yellow"), V3(1.6*scale, 1.6*scale, 0.6*scale))
  4513. Add.Mesh(Tip2, "http://www.roblox.com/asset/?id=3270017", V3(i*scale, i*scale, 2*scale), "")
  4514. Weld(Main, Tip2, CN(), CN(0, 0, 1.1*scale))
  4515. end
  4516. for i = -0.3, 1, 0.15 do
  4517. local p = Part(Weapon, false, false, 0.7, 0, BN("Black"), V3(0.2, 0.2, 0.2))
  4518. Add.Sphere(p, V3(6*scale, 6*scale, 2*scale))
  4519. Weld(Main2, p, CN(0, 0, i*scale))
  4520. end
  4521. Weapon.Parent = Model
  4522. Model.Parent = Char
  4523.  
  4524. local function Show_Damage(P, D)
  4525. local mo = Instance.new("Model")
  4526. mo.Name = "- "..D
  4527. local p = Part(mo, false, false, 0, 0, BN("Bright red"), V3(0.2, 0.2, 0.2))
  4528. p.Name = "Head"
  4529. local m = Instance.new("SpecialMesh")
  4530. m.MeshType = "Brick"
  4531. m.Scale = Vector3.new(4.5, 2.3, 4.5)
  4532. m.Parent = p
  4533. local bp = Instance.new("BodyPosition", p)
  4534. bp.maxForce = V3(MH, MH, MH)
  4535. bp.P = 9001
  4536. bp.position = CN(P) * CN(0, 1.5, 0).p
  4537. local h = Instance.new("Humanoid")
  4538. h.Health = 0
  4539. h.MaxHealth = 0
  4540. h.Name = "asd"
  4541. h.Parent = mo
  4542. local nah = true
  4543. mo.Parent = workspace
  4544. p.CFrame = CN(P)
  4545. Notime(function()
  4546. wait(1.5)
  4547. for i = 0, 1, 0.05 do
  4548. p.Transparency = i
  4549. if nah then mo.Name = "" nah = false else mo.Name = "- "..D nah = true end
  4550. wait()
  4551. end
  4552. mo:remove()
  4553. end)
  4554. end
  4555. local function Kill(hit)
  4556. if Debounce and Hurt then
  4557. local Hu = GetHum(hit.Parent)
  4558. if Hu then
  4559. Debounce = false
  4560. local Dmg = MRA(Damage[1], Damage[2])
  4561. Hu.Health = Hu.Health - Dmg
  4562. pcall(function() Show_Damage(Tip.Position, Dmg) end)
  4563. PlaySound(Sounds.Hit, true)
  4564. local chance = MRA(1, 10)
  4565. if chance >=5 then
  4566. Hu.PlatformStand = true
  4567. wait(0.1)
  4568. hit.Velocity = (CN(Torso.CFrame * CN(0, 0.5, 0).p, hit.Position).lookVector * 45)
  4569. hit.RotVelocity = V3(MRA(-10, 10), MRA(-10, 10), MRA(-10, 10))
  4570. wait(0.3)
  4571. Hu.PlatformStand = false
  4572. end
  4573. end
  4574. end
  4575. end
  4576. Main.Touched:connect(Kill)
  4577. local function Attach(t)
  4578. RSH.Part0 = t
  4579. LSH.Part0 = t
  4580. RH.Part0 = t
  4581. LH.Part0 = t
  4582. RABW.Part0 = t
  4583. LABW.Part0 = t
  4584. LLBW.Part0 = t
  4585. RLBW.Part0 = t
  4586. if t == Torso then
  4587. FTorso.Transparency = 1
  4588. else
  4589. Torso.Transparency = 1
  4590. end
  4591. t.Transparency = 0
  4592. end
  4593. local function SelectAnim()
  4594. RAW.Part1 = Rarm
  4595. for i = 0.25, 1, 0.25 do
  4596. RAW.C0 = CA(MR(-10*i), 0, MR(-5*i))
  4597. wait()
  4598. end
  4599. for i = 0.1, 1, 0.1 do
  4600. RAW.C0 = CA(MR(-10-90*i), 0, MR(-5-30*i))
  4601. wait()
  4602. end
  4603. for i = 0.5, 1, 0.5 do
  4604. RAW.C0 = CA(MR(-100-5*i), 0, MR(-35))
  4605. wait()
  4606. end
  4607. HW.Part1 = Handle
  4608. HW.C0 = CA(MR(50), 0, MR(-37))
  4609. TW.Part1 = nil
  4610. Attach(FTorso)
  4611. LAW.Part1 = Larm
  4612. for i = 0.25, 1, 0.25 do
  4613. RAW.C0 = CA(MR(-105+10*i), 0, MR(-35+5*i))
  4614. LAW.C0 = CA(MR(15*i), 0, MR(5*i))
  4615. FW.C0 = CA(0, MR(-5*i), 0)
  4616. HW.C0 = CA(MR(50-5*i), 0, MR(-37))
  4617. wait()
  4618. end
  4619. for i = 0.06, 1, 0.06 do
  4620. RAW.C0 = CA(MR(-95+95*i), MR(35*i), MR(-30+50*i))
  4621. LAW.C0 = CA(MR(15+25*i), 0, MR(5+15*i)) * CN(0, (-0.4*scale)*i, 0)
  4622. FW.C0 = CA(0, MR(-5-30*i), 0)
  4623. HW.C0 = CA(MR(45), 0, MR(-37+15*i))
  4624. wait()
  4625. end
  4626. Hum.WalkSpeed = Speed-3
  4627. for i = 0.1, 1, 0.1 do
  4628. RAW.C0 = CA(MR(15*i), MR(35+10*i), MR(20+8*i))
  4629. LAW.C0 = CA(MR(40+7*i), 0, MR(20+6*i)) * CN(0, (-0.4*scale)-(0.2*scale)*i, 0)
  4630. FW.C0 = CA(0, MR(-35-10*i), 0)
  4631. HW.C0 = CA(MR(45-11*i), 0, MR(-22+15*i))
  4632. wait()
  4633. end
  4634. for i = 0.25, 1, 0.25 do
  4635. RAW.C0 = CA(MR(15+5*i), MR(45+5*i), MR(28+2*i))
  4636. LAW.C0 = CA(MR(47+3*i), 0, MR(26+4*i)) * CN(0, -0.6*scale, 0)
  4637. FW.C0 = CA(0, MR(-45-5*i), 0)
  4638. HW.C0 = CA(MR(34-4*i), 0, MR(-7+7*i))
  4639. wait()
  4640. end
  4641. end
  4642. local function DeselAnim()
  4643. for i = 0.25, 1, 0.25 do
  4644. RAW.C0 = CA(MR(20-5*i), MR(50-5*i), MR(30-5*i))
  4645. LAW.C0 = CA(MR(50-5*i), 0, MR(30-5*i)) * CN(0, -((0.6+0.1)*scale)*i, 0)
  4646. FW.C0 = CA(0, MR(-50+5*i), 0)
  4647. HW.C0 = CA(MR(30+5*i), 0, MR(-10*i))
  4648. wait()
  4649. end
  4650. for i = 0.15, 1, 0.15 do
  4651. RAW.C0 = CA(MR(15-30*i), MR(45-10*i), MR(25-5*i))
  4652. LAW.C0 = CA(MR(45-20*i), 0, MR(25-15*i)) * CN(0, -0.5+0.2*i, 0)
  4653. FW.C0 = CA(0, MR(-45+10*i), 0)
  4654. HW.C0 = CA(MR(35+10*i), 0, MR(-10-15*i))
  4655. wait()
  4656. end
  4657. for i = 0.12, 1, 0.12 do
  4658. RAW.C0 = CA(MR(-15-70*i), MR(35-30*i), MR(20-30*i))
  4659. LAW.C0 = CA(MR(25-25*i), 0, MR(10-10*i)) * CN(0, -0.3+0.3*i, 0)
  4660. FW.C0 = CA(0, MR(-35+20*i), 0)
  4661. HW.C0 = CA(MR(45+5*i), 0, MR(-25-12*i))
  4662. wait()
  4663. end
  4664. LAW.Part1 = nil
  4665. HW.C0 = CA(MR(50), 0, MR(-37))
  4666. for i = 0.25, 1, 0.25 do
  4667. RAW.C0 = CA(MR(-85-20*i), MR(5-5*i), MR(-10-25*i))
  4668. FW.C0 = CA(0, MR(-15+15*i), 0)
  4669. wait()
  4670. end
  4671. Attach(Torso)
  4672. HW.Part1 = nil
  4673. TW.Part1 = Handle
  4674. Hum.WalkSpeed = 16
  4675. for i = 0.15, 1, 0.15 do
  4676. RAW.C0 = CA(MR(-105+95*i), 0, MR(-35+30*i))
  4677. wait()
  4678. end
  4679. for i = 0.33, 1, 0.33 do
  4680. RAW.C0 = CA(MR(-10+10*i), 0, MR(-5+5*i))
  4681. wait()
  4682. end
  4683. RAW.Part1 = nil
  4684. end
  4685. local function Explode(Par, Pos, surface)
  4686. Notime(function()
  4687. local cf = CN(Pos) * CA(Par.CFrame:toEulerAnglesXYZ()) * surface[2] * CN(0, 1, 0)
  4688. local col = Par.BrickColor.Color
  4689. local r, g, b = col.r, col.g, col.b
  4690. local col1, col2, col3 = C3(MRA(r*60, r*100)/100, MRA(g*60, g*100)/100, MRA(b*60, b*100)/100), C3(MRA(r*60, r*100)/100, MRA(g*60, g*100)/100, MRA(b*60, b*100)/100), C3(MRA(r*60, r*100)/100, MRA(g*60, g*100)/100, MRA(b*60, b*100)/100)
  4691. local p = Part(workspace, true, false, 0, 0, BN(col1.r, col1.g, col1.b), V3(0.2, 0.2, 0.2))
  4692. local p2 = Part(workspace, true, false, 0, 0, BN(col2.r, col2.g, col2.b), V3(0.2, 0.2, 0.2))
  4693. local p3 = Part(workspace, true, false, 0, 0, BN(col3.r, col3.g, col3.b), V3(0.2, 0.2, 0.2))
  4694. p.CFrame = cf
  4695. p2.CFrame = cf
  4696. p3.CFrame = cf
  4697. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", V3(1, 1, 1))
  4698. local m2 = Add.Mesh(p2, "http://www.roblox.com/asset/?id=20329976", V3(1, 1, 1))
  4699. local m3 = Add.Mesh(p3, "http://www.roblox.com/asset/?id=20329976", V3(1, 1, 1))
  4700. for i = -0.2, 1, 0.12 do
  4701. p2.Transparency = i+0.1
  4702. p.Transparency = i
  4703. p3.Transparency = i+0.2
  4704. m.Scale = V3(scale+(2.5*scale)*i, (1.4*scale)+scale*i, scale+(2.5*scale)*i)
  4705. m2.Scale = V3((0.8*scale)+(2*scale)*i, (1.2*scale)+scale*i, (0.8*scale)+(2*scale)*i)
  4706. m3.Scale = V3((0.5*scale)+scale*i, scale+scale*i, (0.5*scale)+scale*i)
  4707. wait()
  4708. end
  4709. p2:remove()
  4710. p3:remove()
  4711. p:remove()
  4712. end)
  4713. end
  4714. local function Shoot(Pos)
  4715. coroutine.resume(coroutine.create(function()
  4716. local acc = Accuracy*100
  4717. local Start = Main2.CFrame * CN(0, 0, -0.5).p
  4718. local Face = CN(Start, Pos) * CA(MR(MRA(-acc, acc))/100, MR(MRA(-acc, acc))/100, MR(MRA(-acc, acc))/100)
  4719. local Cannonball = Part(Model, true, false, 0, 0, BN("Black"), V3(1.3*scale, 1.3*scale, 1.3*scale))
  4720. Add.Sphere(Cannonball)
  4721. Cannonball.CFrame = Face
  4722. local Go = 3*scale
  4723. local Drop = 0.55/(Go*3)
  4724. local Dist = 500*scale
  4725. local lastP = Start
  4726. local omg = 0
  4727. for i = Go, Dist, Go do
  4728. Drop = Drop + 1/(Go*3)
  4729. omg = omg + Drop
  4730. local dropping = CA(MR(-Drop), 0, 0)
  4731. if omg > 130 then
  4732. dropping = CN()
  4733. end
  4734. Face = Face * dropping * CN(0, 0, -Go)
  4735. Cannonball.CFrame = Face
  4736. local Magn = (Face.p - lastP).magnitude
  4737. local T = Part(Model, true, false, 0.1, 0, BN("Mid gray"), V3(0.2, 1, 0.2))
  4738. local M = Instance.new("SpecialMesh",T)
  4739. M.MeshType = "Head"
  4740. M.Scale = V3(4.5*scale, Magn, 4.5*scale)
  4741. T.CFrame = CN(lastP, Face.p) * CA(MR(-90), 0, 0) * CN(0, Magn/2, 0)
  4742. Notime(function()
  4743. wait(0.1)
  4744. for i = 0.1, 1, 0.1 do
  4745. T.Transparency = i+0.1
  4746. M.Scale = V3(5-5*i, Magn+0.5, 5-5*i)
  4747. wait()
  4748. end
  4749. T:remove()
  4750. end)
  4751. local Hit, Hitpos = RayC(lastP, Face.p, Go*2, Char)
  4752. lastP = Face.p
  4753. if Hit then
  4754. PlaySound(Sounds.Boom, true)
  4755. local s = DetectSurface(Hitpos, Hit)
  4756. Explode(Hit, Hitpos, s)
  4757. Cannonball.CFrame = CN(Hitpos)
  4758. local hu = GetHum(Hit.Parent)
  4759. if hu == nil and Hit.Parent.className ~= "Hat" and Hit.Anchored then
  4760. coroutine.resume(coroutine.create(function()
  4761. wait(10)
  4762. for i = 0, 1, 0.04 do
  4763. Cannonball.Transparency = i
  4764. wait()
  4765. end
  4766. Cannonball:remove()
  4767. end))
  4768. else
  4769. Cannonball:remove()
  4770. end
  4771. local Noobs = GetGroup(Hitpos, 5*scale, Hit)
  4772. for _,v in pairs(Noobs) do
  4773. local dm = 60/((v[3]+3)/3)
  4774. local multi = (scale+10)/10
  4775. dm = MRA(dm*0.9, dm*1.04)*multi
  4776. v[1].Health = v[1].Health - dm
  4777. local t = v[2]:findFirstChild("Head")
  4778. if t then
  4779. Show_Damage(t.Position, dm)
  4780. end
  4781. end
  4782. local Parts = GetParts(Hitpos, 6*scale)
  4783. for _,v in pairs(Parts) do
  4784. if v[3] == false then
  4785. Notime(function()
  4786. if v[1].Name == "Brick wall" then
  4787. v[1]:BreakJoints()
  4788. v[1].Velocity = (CN(Hitpos, v[1].Position).lookVector * (110/((v[2]+2)/3)))
  4789. wait(0.1)
  4790. v[1].Velocity = (CN(Hitpos, v[1].Position).lookVector * (110/((v[2]+2)/3)))
  4791. else
  4792. v[1].Velocity = (CN(Hitpos, v[1].Position).lookVector * (80/((v[2]+2)/3)))
  4793. end
  4794. end)
  4795. end
  4796. end
  4797. break
  4798. end
  4799. wait()
  4800. end
  4801. end))
  4802. end
  4803. local function ShootAnim(pos)
  4804. RLW.Part1 = Rleg
  4805. LLW.Part1 = Lleg
  4806. local cf = ComputePos(Torso.Position, pos)
  4807. local bp = Instance.new("BodyPosition",Torso)
  4808. bp.maxForce = V3(MH, 0, MH)
  4809. bp.P = 11000
  4810. PlaySound(Sounds.Shoot, true)
  4811. local effect = Part(Model, false, false, 0, 0, BN(ShootColors[MRA(1,#ShootColors)]), V3(0.2, 0.2, 0.2))
  4812. local effect2 = Part(Model, false, false, 0, 0, BN(ShootColors[MRA(1,#ShootColors)]), V3(0.2, 0.2, 0.2))
  4813. local m1 = Add.Mesh(effect, "http://www.roblox.com/asset/?id=20329976", V3(1,1,1))
  4814. local m2 = Add.Mesh(effect2, "http://www.roblox.com/asset/?id=20329976", V3(1,1,1))
  4815. local w1 = Weld(Main2, effect, CA(MR(-90), 0, 0), CN(0, -1, 0))
  4816. local w2 = Weld(Main2, effect2, CA(MR(-90), 0, 0), CN(0, -1, 0))
  4817. for i = 0, 1, 0.5 do
  4818. RAW.C0 = CA(MR(20-50*i), MR(50-25*i), MR(30+45*i))
  4819. LAW.C0 = CA(MR(50-10*i), 0, MR(30+20*i)) * CN(0, (-0.6*scale)-(0.3*scale)*i, 0)
  4820. RLW.C0 = CA(MR(30*i), 0, MR(-15*i))
  4821. LLW.C0 = CA(MR(10*i), 0, MR(-35*i))
  4822. FW.C0 = CA(MR(5*i), MR(-50-15*i), 0)
  4823. HW.C0 = CA(MR(30), MR(35*i), MR(-25*i))
  4824. Neck.C0 = necko * CA(MR(10*i), 0, 0)
  4825. bp.position = cf * CN(0, 0, (3*scale)*i).p
  4826. m1.Scale = V3((0.5*scale)+(0.6*scale)*i, (0.4*scale)+(0.2*scale)*i, (0.5*scale)+(0.6*scale)*i)
  4827. m2.Scale = V3((0.3*scale)+(0.5*scale)*i, (0.5*scale)+scale*i, (0.3*scale)+(0.5*scale)*i)
  4828. w1.C1 = CN(0, -scale-(0.2*scale)*i, 0)
  4829. w2.C1 = CN(0, -scale-(0.5*scale)*i, 0)
  4830. effect.Transparency = 0.2*i
  4831. effect2.Transparency = 0.2*i
  4832. wait()
  4833. end
  4834. for i = 0.2, 1, 0.2 do
  4835. RAW.C0 = CA(MR(-30-10*i), MR(25-5*i), MR(75+5*i))
  4836. LAW.C0 = CA(MR(40-5*i), 0, MR(50+5*i)) * CN(0, (-0.9*scale)-(0.05*scale)*i, 0)
  4837. RLW.C0 = CA(MR(30+5*i), 0, MR(-15))
  4838. LLW.C0 = CA(MR(10+5*i), 0, MR(-35-5*i))
  4839. FW.C0 = CA(MR(5+5*i), MR(-65-5*i), 0)
  4840. HW.C0 = CA(MR(30), MR(35+5*i), MR(-25-5*i))
  4841. Neck.C0 = necko * CA(MR(10+5*i), 0, 0)
  4842. bp.position = cf * CN(0, 0, (3*scale)+scale*i).p
  4843. m1.Scale = V3(scale+scale*i, (0.7*scale)+(0.9*scale)*i, scale+scale*i)
  4844. m2.Scale = V3((0.8*scale)+(0.6*scale)*i, (1.5*scale)+(1.6*scale)*i, (0.8*scale)+(0.6*scale)*i)
  4845. w1.C1 = CN(0, (-1.2*scale)-(0.6*scale)*i, 0)
  4846. w2.C1 = CN(0, (-1.5*scale)-(1.8*scale)*i, 0)
  4847. effect.Transparency = 0.2+0.9*i
  4848. effect2.Transparency = 0.2+0.9*i
  4849. wait()
  4850. end
  4851. effect:remove()
  4852. effect2:remove()
  4853. for i = 0.2, 1, 0.2 do
  4854. bp.position = cf * CN(0, 0, (4*scale)+(0.8*scale)*i).p
  4855. wait()
  4856. end
  4857. for i = 0.08, 1, 0.06 do
  4858. RAW.C0 = CA(MR(-40+50*i), MR(20+15*i), MR(80-35*i))
  4859. LAW.C0 = CA(MR(35-30*i), 0, MR(55-45*i)) * CN(0, (-0.95*scale)+(0.5*scale)*i, 0)
  4860. RLW.C0 = CA(MR(35-35*i), 0, MR(-15+25*i))
  4861. LLW.C0 = CA(MR(15-15*i), 0, MR(-40+30*i))
  4862. FW.C0 = CA(MR(10-7*i), MR(-70+40*i), 0)
  4863. HW.C0 = CA(MR(30), MR(40-40*i), MR(-30-10*i))
  4864. Neck.C0 = necko * CA(MR(15+5*i), 0, MR(20*i))
  4865. bp.position = cf * CN(0, 0, (4.8*scale)+(0.8*scale)*i).p
  4866. wait()
  4867. end
  4868. bp:remove()
  4869. for i = 0.33, 1, 0.33 do
  4870. RAW.C0 = CA(MR(10+10*i), MR(35+5*i), MR(45-5*i))
  4871. LAW.C0 = CA(MR(5), 0, MR(10)) * CN(0, (-0.45*scale)+(0.1*scale)*i, 0)
  4872. FW.C0 = CA(MR(3-3*i), MR(-30+5*i), 0)
  4873. HW.C0 = CA(MR(30), 0, MR(-40-10*i))
  4874. wait()
  4875. end
  4876. for i = 0.12, 1, 0.12 do
  4877. RAW.C0 = CA(MR(20+5*i), MR(40+5*i), MR(40+5*i))
  4878. LAW.C0 = CA(MR(5), 0, MR(10)) * CN(0, (-0.35*scale)-(0.3*scale)*i, 0)
  4879. FW.C0 = CA(0, MR(-25+5*i), 0)
  4880. HW.C0 = CA(MR(30), 0, MR(-50-5*i))
  4881. wait()
  4882. end
  4883. local b = Part(Model, false, false, 0, 0, BN("Black"), V3(1.1*scale, 1.1*scale, 1.1*scale))
  4884. local m = Add.Sphere(b)
  4885. local w = Weld(Larm, b, CN(), CN(0, 1.4*scale, 0))
  4886. for i = 0.16, 1, 0.16 do
  4887. LAW.C0 = CA(MR(5+30*i), 0, MR(10+10*i)) * CN(0, (-0.65*scale)+(0.65*scale)*i, 0)
  4888. RAW.C0 = CA(MR(25), MR(45+3*i), MR(40))
  4889. m.Scale = V3(0.5+0.5*i, 0.5+0.5*i, 0.5+0.5*i)
  4890. Neck.C0 = necko * CA(MR(20-10*i), 0, MR(20-15*i))
  4891. wait()
  4892. end
  4893. for i = 0.1, 1, 0.1 do
  4894. LAW.C0 = CA(MR(35+105*i), 0, MR(20+20*i)) * CN(0, (-0.9*scale)*i, 0)
  4895. RAW.C0 = CA(MR(25), MR(48+6*i), MR(40))
  4896. Neck.C0 = necko * CA(MR(10-10*i), 0, MR(5-35*i))
  4897. wait()
  4898. end
  4899. for i = 0.16, 1, 0.16 do
  4900. LAW.C0 = CA(MR(140-10*i), 0, MR(40-15*i)) * CN(0, (-0.9*scale)-(0.2*scale)*i, 0)
  4901. RAW.C0 = CA(MR(25), MR(54), MR(40))
  4902. Neck.C0 = necko * CA(MR(5*i), 0, MR(-30))
  4903. w.C0 = CN((1.5*scale)*i, (0.55*scale)*i, (1.1*scale)*i)
  4904. wait()
  4905. end
  4906. PlaySound(Sounds.Reload, true)
  4907. b:remove()
  4908. w:remove()
  4909. for i = 0.2, 1, 0.2 do
  4910. LAW.C0 = CA(MR(130-10*i), 0, MR(25-15*i)) * CN(0, (-1.1*scale)+(0.2*scale)*i, 0)
  4911. RAW.C0 = CA(MR(25-10*i), MR(54), MR(40))
  4912. Neck.C0 = necko * CA(MR(5-3*i), 0, MR(-30+5*i))
  4913. HW.C0 = CA(MR(30), 0, MR(-55+10*i))
  4914. FW.C0 = CA(0, MR(-20-5*i), 0)
  4915. wait()
  4916. end
  4917. for i = 0.11, 1, 0.11 do
  4918. LAW.C0 = CA(MR(120-60*i), 0, MR(10+15*i)) * CN(0, (-0.9*scale)+(0.3*scale)*i, 0)
  4919. RAW.C0 = CA(MR(15+5*i), MR(54-4*i), MR(40-10*i))
  4920. Neck.C0 = necko * CA(MR(2-2*i), 0, MR(-25+25*i))
  4921. HW.C0 = CA(MR(30), 0, MR(-45+45*i))
  4922. FW.C0 = CA(0, MR(-25-20*i), 0)
  4923. RLW.C0 = CA(0, 0, MR(10-8*i))
  4924. LLW.C0 = CA(0, 0, MR(-10+8*i))
  4925. wait()
  4926. end
  4927. Neck.C0 = necko
  4928. for i = 0.25, 1, 0.25 do
  4929. LAW.C0 = CA(MR(60-10*i), 0, MR(25+5*i)) * CN(0, -0.6*scale, 0)
  4930. RAW.C0 = CA(MR(20), MR(50), MR(30))
  4931. HW.C0 = CA(MR(30), 0, 0)
  4932. FW.C0 = CA(0, MR(-45-5*i), 0)
  4933. RLW.C0 = CA(0, 0, MR(2-2*i))
  4934. LLW.C0 = CA(0, 0, MR(-2+2*i))
  4935. wait()
  4936. end
  4937. RLW.Part1 = nil
  4938. LLW.Part1 = nil
  4939. RAW.C0 = CA(MR(20), MR(50), MR(30))
  4940. LAW.C0 = CA(MR(50), 0, MR(30)) * CN(0, -0.6*scale, 0)
  4941. FW.C0 = CA(0, MR(-50), 0)
  4942. HW.C0 = CA(MR(30), 0, 0)
  4943. Neck.C0 = necko
  4944. end
  4945. local function Melee()
  4946. PlaySound(Sounds.Slash, true)
  4947. for i = 0.25, 1, 0.25 do
  4948. RAW.C0 = CA(MR(20+5*i), MR(50-5*i), MR(30+3*i))
  4949. LAW.C0 = CA(MR(50), 0, MR(30+4*i)) * CN(0, (-0.6*scale)-(0.05*scale)*i, 0)
  4950. HW.C0 = CA(MR(30), MR(5*i), 0)
  4951. FW.C0 = CA(0, MR(-50-5*i), 0)
  4952. wait()
  4953. end
  4954. for i = 0.12, 1, 0.12 do
  4955. RAW.C0 = CA(MR(25+25*i), MR(45-30*i), MR(33+7*i))
  4956. LAW.C0 = CA(MR(50), 0, MR(34+11*i)) * CN(0, (-0.65*scale)-(0.25*scale)*i, 0)
  4957. HW.C0 = CA(MR(30), MR(5+25*i), 0)
  4958. FW.C0 = CA(0, MR(-55-25*i), 0)
  4959. wait()
  4960. end
  4961. for i = 0.33, 1, 0.33 do
  4962. RAW.C0 = CA(MR(50+15*i), MR(15-5*i), MR(40-10*i)) * CN(0, (-0.2*scale)*i, 0)
  4963. LAW.C0 = CA(MR(50+10*i), 0, MR(45-5*i)) * CN(0, (-0.9*scale)+(0.15*scale)*i, 0)
  4964. HW.C0 = CA(MR(30+2*i), MR(30+5*i), 0)
  4965. FW.C0 = CA(0, MR(-80+10*i), MR(-5*i))
  4966. wait()
  4967. end
  4968. Hurt = true
  4969. Debounce = true
  4970. for i = 0.07, 1, 0.07 do
  4971. RAW.C0 = CA(MR(65+55*i), MR(10), MR(30-70*i)) * CN(0, (-0.2*scale)-(1.1*scale)*i, 0)
  4972. LAW.C0 = CA(MR(60+120*i), 0, MR(40-70*i)) * CN(0, (-0.75*scale)+(0.7*scale)*i, 0)
  4973. HW.C0 = CA(MR(32+6*i), MR(35+20*i), MR(-4*i))
  4974. FW.C0 = CA(0, MR(-70+110*i), 0)
  4975. wait()
  4976. end
  4977. for i = 0.16, 1, 0.16 do
  4978. RAW.C0 = CA(MR(120+10*i), MR(10), MR(-40-5*i)) * CN(0, (-1.3*scale)-(0.1*scale)*i, 0)
  4979. LAW.C0 = CA(MR(180+15*i), 0, MR(-30-20*i)) * CN(0, (-0.05*scale)+(0.1*scale)*i, 0)
  4980. HW.C0 = CA(MR(38+2*i), MR(55-6*i), MR(-4-1*i))
  4981. FW.C0 = CA(0, MR(40+10*i), 0)
  4982. wait()
  4983. end
  4984. Hurt = false
  4985. for i = 0.2, 1, 0.2 do
  4986. RAW.C0 = CA(MR(130+5*i), MR(10), MR(-45-2*i)) * CN(0, (-1.4*scale)-(0.05*scale)*i, 0)
  4987. LAW.C0 = CA(MR(195+5*i), 0, MR(-50-8*i)) * CN(0, (0.05*scale)+(0.05*scale)*i, 0)
  4988. HW.C0 = CA(MR(40), MR(49-2*i), MR(-5))
  4989. FW.C0 = CA(0, MR(50+3*i), 0)
  4990. wait()
  4991. end
  4992. wait(0.2)
  4993. for i = 0.2, 1, 0.2 do
  4994. RAW.C0 = CA(MR(135-10*i), MR(10+5*i), MR(-47+10*i)) * CN(0, (-1.45*scale)+(0.25*scale)*i, 0)
  4995. LAW.C0 = CA(MR(200-10*i), 0, MR(-58+10*i)) * CN(0, (0.1*scale)-(0.1*scale)*i, 0)
  4996. HW.C0 = CA(MR(40), MR(47-5*i), MR(-5+5*i))
  4997. FW.C0 = CA(0, MR(53-10*i), 0)
  4998. wait()
  4999. end
  5000. for i = 0.08, 1, 0.08 do
  5001. RAW.C0 = CA(MR(125-90*i), MR(15+30*i), MR(-37+57*i)) * CN(0, (-1.2*scale)+(1.1*scale)*i, 0)
  5002. LAW.C0 = CA(MR(190-125*i), 0, MR(-48+68*i)) * CN(0, (-0.5*scale)*i, 0)
  5003. HW.C0 = CA(MR(40-7*i), MR(42-37*i), 0)
  5004. FW.C0 = CA(0, MR(43-82*i), 0)
  5005. wait()
  5006. end
  5007. for i = 0.2, 1, 0.2 do
  5008. RAW.C0 = CA(MR(35-15*i), MR(45+5*i), MR(20+10*i)) * CN(0, (-0.1*scale)+(0.1*scale)*i, 0)
  5009. LAW.C0 = CA(MR(65-15*i), 0, MR(20+10*i)) * CN(0, (-0.5*scale)-(0.1*scale)*i, 0)
  5010. HW.C0 = CA(MR(33-3*i), MR(5-5*i), 0)
  5011. FW.C0 = CA(0, MR(-41-9*i), 0)
  5012. wait()
  5013. end
  5014. RLW.Part1 = nil
  5015. LLW.Part1 = nil
  5016. RAW.C0 = CA(MR(20), MR(50), MR(30))
  5017. LAW.C0 = CA(MR(50), 0, MR(30)) * CN(0, -0.6*scale, 0)
  5018. FW.C0 = CA(0, MR(-50), 0)
  5019. HW.C0 = CA(MR(30), 0, 0)
  5020. Neck.C0 = necko
  5021. end
  5022. wait(1)
  5023. Selected = true
  5024. SelectAnim()
  5025. wait(1.5)
  5026. while Hum.Health > 0 do
  5027. local list = game.Players:GetPlayers()
  5028. local targ = list[MRA(1,#list)].Character:findFirstChild("Torso")
  5029. if targ then
  5030. local choice = MRA(1,6)
  5031. if choice == 1 then
  5032. repeat
  5033. wait(0.2)
  5034. if targ.Parent == nil then break end
  5035. Hum:MoveTo(CN(targ.Position, Torso.Position) * CN(0, 0, -(scale)).p, targ)
  5036. until (Torso.Position - targ.Position).magnitude < (scale*2)+1
  5037. Melee()
  5038. else
  5039. local bg = Instance.new("BodyGyro")
  5040. bg.P = 3000
  5041. bg.maxTorque = V3(MH, MH, MH)
  5042. bg.cframe = ComputePos(Torso.Position, targ.Position)
  5043. bg.Parent = Torso
  5044. local pos = Torso.Position
  5045. local pos2 = targ.Position
  5046. for i = 1, 10, 1 do
  5047. wait(0.1)
  5048. bg.cframe = ComputePos(Torso.Position, targ.Position)
  5049. pos2 = targ.Position
  5050. end
  5051. bg:remove()
  5052. wait(0.2)
  5053. if Hum.Health >0 then
  5054. local magn = ((Torso.Position - pos2).magnitude+5)/((scale+10)/10)
  5055. local pos = pos2 + V3(0, magn/11, 0)
  5056. Shoot(pos)
  5057. ShootAnim(pos)
  5058. local p = RayC(pos, pos-V3(0, 10, 0), scale*4, Char)
  5059. if p then
  5060. Hum:MoveTo(CN(pos, Torso.Position) * CN(0, 0, -2).p, p)
  5061. end
  5062. end
  5063. end
  5064. end
  5065. wait(0.2)
  5066. end
  5067. return Nub
  5068. end
  5069. for i = 1, 1 do
  5070. coroutine.resume(coroutine.create(function()
  5071. if game.Players.LocalPlayer ~= nil then
  5072. if game.Players.LocalPlayer.Character ~= nil then
  5073. if game.Players.LocalPlayer.Character:FindFirstChild("Torso") ~= nil then
  5074. local nub = MakeNoob(game.Players.LocalPlayer.Character:FindFirstChild("Torso").Position + V3(0,25,25), 5)
  5075. end
  5076. end
  5077. end
  5078. end))
  5079. end
  5080.  
  5081. end)
  5082. local brock = Instance.new("TextButton", Frame1)
  5083. brock.Size = UDim2.new(0.2, 0, 0.1, 0)
  5084. brock.Position = UDim2.new(0, 0, 0.25, 0)
  5085. brock.Text = "Brock"
  5086. brock.BackgroundColor3 = Color3.new(0, 110, 160)
  5087. brock.BackgroundTransparency = 0.6
  5088. brock.TextColor3 = Color3.new(1, 1, 1)
  5089. brock.MouseButton1Down:connect(function(brock1)
  5090.  
  5091. v3 = Vector3.new
  5092. cn = CFrame.new
  5093. ca2 = CFrame.Angles
  5094. mf = math.floor
  5095. mran = math.random
  5096. mrad = math.rad
  5097. mdeg = math.deg
  5098. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  5099. mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
  5100. ud=UDim2.new
  5101. bn = BrickColor.new
  5102. c3 = Color3.new
  5103. -----
  5104. --Player='PerfectTrollz'
  5105. Players=game:service'Players'
  5106. Player=Players.LocalPlayer --[Player]
  5107. PChar=Player.Character
  5108.  
  5109. as,so={},{'metal','Block','Slash','Slash2','Hit','Kick'}
  5110. as.corner='11294911'
  5111. as.cone='1033714'
  5112. as.ring="3270017"
  5113. as.Chakram='47260990'
  5114. as.ring2='18430887'
  5115. as.blast='20329976'
  5116. as.missile='10207677'
  5117. as.fire='2693346'
  5118. as.boom='3264793'
  5119. as.slash='10209645'
  5120. as.abscond='2767090'
  5121. as.firelaser='13775494'
  5122. as.diamond='9756362'
  5123. as.metal='rbxasset://sounds\\unsheath.wav'
  5124. as.Block = 'rbxasset://sounds\\metal.ogg'
  5125. as.Slash = '10209645'
  5126. as.Slash2 = '46760716'
  5127. as.Hit='10209583'
  5128. as.Kick='46153268'
  5129. as.cast='2101137'
  5130. as.rockhead= '21629626'
  5131. as.rockheadt='21629620'
  5132.  
  5133.  
  5134. for i,v in pairs(as) do
  5135. if type(tonumber(v:sub(1,3)))=="number" then
  5136. as[i]="http://www.roblox.com/asset/?id="..v
  5137. end
  5138. end
  5139.  
  5140. LastMade=nil
  5141. iNew=function(tab)
  5142. local v=Instance.new(tab[1])
  5143. for Ind,Val in pairs(tab) do
  5144. if Ind~=1 and Ind~=2 then
  5145. v[Ind] = Val
  5146. end
  5147. end
  5148. v.Parent=tab[2]==0 and LastMade or tab[2]
  5149. LastMade=v
  5150. return v
  5151. end
  5152. iPart=function(tab)
  5153. local v=Instance.new(tab.type or 'Part')
  5154. if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
  5155. v.TopSurface=0 v.BottomSurface=0
  5156. if tab.sc then
  5157. v.Size=v3(tab[2]*tab.sc,tab[3]*tab.sc,tab[4]*tab.sc)
  5158. else
  5159. v.Size=v3(tab[2],tab[3],tab[4])
  5160. end
  5161. if tab.co then v.BrickColor=bn(tab.co) end
  5162. if tab.tr then v.Transparency=tab.tr end
  5163. if tab.rf then v.Reflectance=tab.rf end
  5164. if tab.can then v.CanCollide=tab.can end
  5165. if tab.cf then v.CFrame=tab.cf end
  5166. if tab.an then v.Anchored=tab.an end
  5167. if tab.na then v.Name=tab.na end
  5168. if tab.ma then v.Material=tab.ma end
  5169. v.Parent=tab[1]
  5170. v:BreakJoints()
  5171. LastMade=v
  5172. return v
  5173. end
  5174. function getoutline(x,z,i)
  5175. return math.sqrt(x^2+z^2)+(i or 0.05),mdeg(math.atan2(x,z))
  5176. end
  5177. function v32(cf)
  5178. local x,y,z=cf:toEulerAnglesXYZ()
  5179. return v3(mdeg(x),mdeg(y),mdeg(z))
  5180. end
  5181. WeldLib={}
  5182. function GetWeld(weld,CO)
  5183. if not WeldLib[weld] then
  5184. local x0,y0,z0=weld.C0:toEulerAnglesXYZ()
  5185. local x1,y1,z1=weld.C1:toEulerAnglesXYZ()
  5186. WeldLib[weld]={[0]=v3(mdeg(x0),mdeg(y0),mdeg(z0)),[1]=v3(mdeg(x1),mdeg(y1),mdeg(z1))}
  5187. end
  5188. return weld['C'..CO].p,WeldLib[weld][CO]
  5189. end
  5190. function ClearWeld(weld)
  5191. if WeldLib[weld] then WeldLib[weld]=nil end
  5192. end
  5193. function TweenNum(i,loops,i1,i2,smooth)
  5194. smooth = smooth or 1
  5195. local perc
  5196. if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
  5197. local ton
  5198. if i1 > i2 then
  5199. ton = -math.abs(i1 - i2) *perc
  5200. else
  5201. ton = math.abs(i1 - i2) *perc
  5202. end
  5203. return i1+ton
  5204. end
  5205. function TweenV3(i,loops,v1,v2,smooth)
  5206. smooth = smooth or 1
  5207. local perc
  5208. if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
  5209. local tox2,toy2,toz2 = 0,0,0
  5210. if v1.x > v2.x then
  5211. tox2 = -math.abs(v1.x - v2.x) *perc
  5212. else
  5213. tox2 = math.abs(v1.x - v2.x) *perc
  5214. end
  5215. if v1.y > v2.y then
  5216. toy2 = -math.abs(v1.y - v2.y) *perc
  5217. else
  5218. toy2 = math.abs(v1.y - v2.y) *perc
  5219. end
  5220. if v1.z > v2.z then
  5221. toz2 = -math.abs(v1.z - v2.z) *perc
  5222. else
  5223. toz2 = math.abs(v1.z - v2.z) *perc
  5224. end
  5225. return v3(v1.x + tox2,v1.y + toy2,v1.z + toz2)
  5226. end
  5227. function TweenCF(i,loops,origpos,origangle,nextpos,nextangle,smooth)
  5228. smooth = smooth or 1
  5229. local perc
  5230. if smooth == 1 then perc = math.sin((math.pi/2)/loops*i) else perc = i/loops end
  5231. local tox,toy,toz = 0,0,0
  5232. if origangle.x > nextangle.x then tox = -math.abs(origangle.x - nextangle.x) *perc
  5233. else tox = math.abs(origangle.x - nextangle.x) *perc end
  5234. if origangle.y > nextangle.y then toy = -math.abs(origangle.y - nextangle.y) *perc
  5235. else toy = math.abs(origangle.y - nextangle.y) *perc end
  5236. if origangle.z > nextangle.z then toz = -math.abs(origangle.z - nextangle.z) *perc
  5237. else toz = math.abs(origangle.z - nextangle.z) *perc end
  5238. local tox2,toy2,toz2 = 0,0,0
  5239. if origpos.x > nextpos.x then
  5240. tox2 = -math.abs(origpos.x - nextpos.x) *perc
  5241. else tox2 = math.abs(origpos.x - nextpos.x) *perc end
  5242. if origpos.y > nextpos.y then
  5243. toy2 = -math.abs(origpos.y - nextpos.y) *perc
  5244. else toy2 = math.abs(origpos.y - nextpos.y) *perc end
  5245. if origpos.z > nextpos.z then
  5246. toz2 = -math.abs(origpos.z - nextpos.z) *perc
  5247. else toz2 = math.abs(origpos.z - nextpos.z) *perc end
  5248. return cn(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2)*ca(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  5249. end
  5250. function SetWeld(weld,CO,i, loops, origpos,origangle, nextpos,nextangle,smooth)
  5251. loops=math.floor(loops)
  5252. smooth = smooth or 1
  5253. if not WeldLib[weld] then
  5254. local x0,y0,z0=weld.C0:toEulerAnglesXYZ()
  5255. local x1,y1,z1=weld.C1:toEulerAnglesXYZ()
  5256. WeldLib[weld]={[0]=v3(mdeg(x0),mdeg(y0),mdeg(z0)),[1]=v3(mdeg(x1),mdeg(y1),mdeg(z1))}
  5257. end
  5258. local perc =smooth==1 and math.sin((math.pi/2)/loops*i) or i/loops
  5259. --print(weld.Part1)
  5260. local tox,toy,toz = 0,0,0
  5261. tox = origangle.x > nextangle.x and -math.abs(origangle.x - nextangle.x) *perc or math.abs(origangle.x - nextangle.x) *perc
  5262. toy = origangle.y > nextangle.y and -math.abs(origangle.y - nextangle.y) *perc or math.abs(origangle.y - nextangle.y) *perc
  5263. toz = origangle.z > nextangle.z and -math.abs(origangle.z - nextangle.z) *perc or math.abs(origangle.z - nextangle.z) *perc
  5264. local tox2,toy2,toz2 = 0,0,0
  5265. tox2= origpos.x > nextpos.x and -math.abs(origpos.x - nextpos.x) *perc or math.abs(origpos.x - nextpos.x) *perc
  5266. toy2= origpos.y > nextpos.y and -math.abs(origpos.y - nextpos.y) *perc or math.abs(origpos.y - nextpos.y) *perc
  5267. toz2= origpos.z > nextpos.z and -math.abs(origpos.z - nextpos.z) *perc or math.abs(origpos.z - nextpos.z) *perc
  5268. WeldLib[weld][CO] = v3(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  5269. weld['C'..CO] = cn(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2)*ca(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  5270. end
  5271. function se(Key,Text)
  5272. local Values = {}
  5273. for value in (Text..Key):gmatch("(.-)"..Key) do
  5274. table.insert(Values,value)
  5275. end
  5276. local Values2={}
  5277. for i,v in pairs(Values) do Values2[i]=Values[i]:lower() end
  5278. return Values,Values2
  5279. end
  5280. findplayer=function(nn)
  5281. if not nn then return nil end
  5282. local found
  5283. for i,v in pairs(Players:GetPlayers()) do
  5284. if string.find(v.Name:lower(),nn:lower()) and not found then found=v end
  5285. end
  5286. return found
  5287. end
  5288. LoopFunctions={}
  5289. iLoopFunctions=-9000
  5290. function DoLoop(times,func)
  5291. iLoopFunctions=iLoopFunctions+1
  5292. LoopFunctions[tonumber(iLoopFunctions)]={times,0,func}
  5293. end
  5294. function MeshEffect(times,cf1,cf2,scale1,scale2,tr1,tr2,col,type)
  5295. local cf2=cf2 or cf1
  5296. local v=iPart{Char,0.2,0.2,0.2,co=col,cf=cf1,na='Mesh',an=true,ca=false,tr=tr1}
  5297. local mesh=iNew{'SpecialMesh',v,Scale=scale1}
  5298. if type=='Brick' or type=='Sphere' then
  5299. mesh.MeshType=type
  5300. else
  5301. mesh.MeshId=type
  5302. end
  5303. local x1,y1,z1 = cf1:toEulerAnglesXYZ()
  5304. local x2,y2,z2 = cf2:toEulerAnglesXYZ()
  5305. local count=0
  5306. DoLoop(times,function(i) count=count+1
  5307. mesh.Scale=TweenV3(count,times,scale1,scale2,1)*((type=='Brick' or type=='Sphere') and 5 or 1)
  5308. v.Transparency=TweenNum(count,times,tr1,tr2,1)
  5309. v.CFrame=TweenCF(count,times,cf1.p,v3(mdeg(x1),mdeg(y1),mdeg(z1)),cf2.p,v3(mdeg(x2),mdeg(y2),mdeg(z2)),1)
  5310. if i==1 then v:Remove() end end)
  5311. end
  5312. Dmgv={8,16}
  5313. HitDebounce={}
  5314. Damage=function(Hum,Mult,Sound)
  5315. if not Hum or Hum.Parent==Char then return end
  5316. if not Hum.Parent:findFirstChild'Torso' then return end
  5317. local HName=Hum.Parent.Name
  5318. if HitDebounce[HName] and HitDebounce[HName]>tick() then return end
  5319. HitDebounce[HName]=tick()+0.2
  5320. local Mult=Mult or 1
  5321. local Dealt=mran(Dmgv[1],Dmgv[2])*Mult
  5322. local col=''
  5323. if Hum.Parent:findFirstChild'Block' and Hum.Parent.Block.Value>0 then
  5324. Hum.Parent.Block.Value=Hum.Parent.Block.Value-1
  5325. col='Bright blue'
  5326. else
  5327. Hum.Health=Hum.Health-Dealt
  5328. col='Bright red'
  5329. end
  5330. if Sound then so[col=='Bright blue' and 'Block' or 'Hit']:Play() end
  5331. local DoH=iNew{'Model',Char,Name=col=='Bright blue' and 'Block' or Dealt}
  5332. iNew{'Humanoid',DoH,MaxHealth=1/0,Health=1/0,Name=''}
  5333. local Doh=iPart{DoH,0.6,0.2,0.6,co=col,an=true} Doh.Name='Head' iNew{'CylinderMesh',Doh}
  5334. local dofs=Hum.Parent.Torso.CFrame*cn(mran2(-1.5,1.5),2.5,mran2(-1,1)) Doh.CFrame=dofs
  5335. DoLoop(40,function(i) Doh.CFrame=dofs*cn(0,i*2,0) Doh.Transparency=i-0.5 if i==1 then DoH:Remove() end end)
  5336. end
  5337. AOEFind = function(pos,ra,f,f2) -- range get
  5338. local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
  5339. pcall(function()
  5340. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  5341. local Hum=v.Parent:findFirstChild'Humanoid'
  5342. if v.Name=='Torso' and Hum and Hum.Health>0 and v.Parent~=Char then
  5343. pcall(function() f(Hum,v) end)
  5344. elseif f2 and not Hum then
  5345. pcall(function() f2(v) end)
  5346. end
  5347. end
  5348. end)
  5349. end
  5350. function FindSurface(part, position)
  5351. local obj = part.CFrame:pointToObjectSpace(position)
  5352. local siz = part.Size/2
  5353. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  5354. local vec = Vector3.FromNormalId(v)
  5355. local wvec = part.CFrame:vectorToWorldSpace(vec)
  5356. local vz = (obj)/(siz*vec)
  5357. if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
  5358. return wvec,vec
  5359. end
  5360. end
  5361. if part.className == "WedgePart" then
  5362. return part.CFrame:vectorToWorldSpace(Vector3.new(0,0.707,-0.707)), Vector3.new(0,0.707,-0.707)
  5363. end
  5364. end
  5365. function FaceBG(pos)
  5366. BG.maxTorque=v3(1,1,1)/0
  5367. BG.cframe=cn(Torso.Position,v3(pos.x,Torso.Position.y,pos.z))*cn(0,0,-1)
  5368. end
  5369. ray = function(Pos, Dir,tab,length) -- ray cast
  5370. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *(length or 999)),tab)
  5371. end
  5372. function Projectile(ofs,speed,part,adj,fhit,fnohit)
  5373. part.CFrame=ofs*adj
  5374. local stop=false
  5375. DoLoop(50,function(x)
  5376. local i=x
  5377. if not stop then
  5378. local hit,pos=ray(ofs.p,ofs.p-ofs*cn(0,0,-1).p,Char,speed+1)
  5379. if hit then
  5380. --Hit
  5381. if fhit then i=1 stop=true
  5382. ----
  5383. local cof=FindSurface(hit,pos)
  5384. --iPart{workspace,2,2,0.2,cf=cn(pos,pos+cof),an=true,co='Black'}
  5385. ----
  5386. local x,y,z=ofs:toEulerAnglesXYZ()
  5387. ofs=cn(pos)*ca(mdeg(x),mdeg(y),mdeg(z))*cn(0,0,-part.Size.y/2)
  5388. part.CFrame=ofs*adj
  5389. fhit(hit,pos) end
  5390. else
  5391. ofs=ofs*cn(0,0,speed)
  5392. part.CFrame=ofs*adj
  5393. end
  5394. if i==1 then
  5395. if fnohit then fnohit(ofs.p) else part:Remove() end
  5396. end
  5397. end
  5398. end)
  5399. end
  5400.  
  5401. CC={'','Bright yellow','Flame reddish orange'}
  5402. Scale=5
  5403. Mat='Marble'
  5404.  
  5405. SpawnPoint=PChar.Torso.CFrame*cn(0,1+Scale*3,-20-Scale*1.5)
  5406. name='Brock'
  5407. pcall(function() _G.OldMod00:Remove() end)
  5408.  
  5409. ---------------
  5410. UNDYING=function()
  5411. pcall(function() fUNDYING:disconnect() end)
  5412. pcall(function() local hum=Grabbing.Part1.Parent.Humanoid Grabbing:Remove() Grabbing=nil hum.PlatformStand=false end)
  5413. Torso.Anchored=true Torso.Transparency=1 Torso.CanCollide=false
  5414. Stand:Remove() Head:Remove()
  5415. local RespawnPos=cn(Torso.CFrame.p+v3(0,Scale*5,0))*ca(0,mran(-360,360),0)
  5416. wait(4)
  5417. Anim='Reviving'
  5418. local oldChar=Char
  5419. local oldRootLimbs=RootLimbs
  5420. for i,v in pairs(oldRootLimbs) do v.Anchored=true end
  5421. fMarble(Char,function(v) v.Anchored=true end)
  5422. MakeAI(RespawnPos) Anim='Reviving'
  5423. fMarble(Char,function(v) v.Transparency=1 end)
  5424. for i,v in pairs(RootLimbs) do v.Transparency=1 end
  5425. wait(0.1) Torso.Anchored=true
  5426. local Reconstruct={}
  5427. fMarble(oldChar,function(v)
  5428. local x1,y1,z1=v.CFrame:toEulerAnglesXYZ()
  5429. local x2,y2,z2=Char[v.Parent.Name][v.Name].CFrame:toEulerAnglesXYZ()
  5430. Reconstruct[#Reconstruct+1]={v,Char[v.Parent.Name][v.Name],v.Position,v3(mdeg(x1),mdeg(y1),mdeg(z1)),v3(mdeg(x2),mdeg(y2),mdeg(z2))} end)
  5431. for i,v in pairs(oldRootLimbs) do
  5432. local x1,y1,z1=v.CFrame:toEulerAnglesXYZ()
  5433. local x2,y2,z2=Char[v.Name].CFrame:toEulerAnglesXYZ()
  5434. Reconstruct[#Reconstruct+1]={v,Char[v.Name],v.Position,v3(mdeg(x1),mdeg(y1),mdeg(z1)),v3(mdeg(x2),mdeg(y2),mdeg(z2))} end
  5435. local tweens=100
  5436. for tween=1,tweens do
  5437. for i,v in pairs(Reconstruct) do v[1].CFrame=TweenCF(tween,tweens,v[3],v[4],v[2].Position,v[5],1)*ca(360*(tween/tweens),720*(tween/tweens),0) end
  5438. wait()
  5439. end
  5440. oldChar:Remove()
  5441. fMarble(Char,function(v) v.Transparency=0 end)
  5442. for i,v in pairs(RootLimbs) do v.Transparency=0 end
  5443. Torso.Anchored=false wait()
  5444. BG.maxTorque=v3(1,1,1)/0 BG.cframe=Torso.CFrame
  5445. ReturnAnim()
  5446. wait(2)
  5447. BG.maxTorque=nov3
  5448. Anim,ArmAnim,LegAnim='None','None','None'
  5449. end
  5450. ------
  5451.  
  5452. function MakeAI(SpawnPoint2)
  5453. Char=iNew{'Model',workspace,Name=name,archivable=false} _G.OldMod00=Char
  5454. Torso=iPart{Char,2,2,1,sc=Scale,co=CC[1],cf=SpawnPoint2,na='Torso'}
  5455. pTorso=iPart{Char,2,2,1,sc=Scale,co=CC[1],cf=SpawnPoint2,na='pTorso'}
  5456. Head=iPart{Char,1,1,1,sc=Scale,co=CC[1],na='Head'}
  5457. pHead=iPart{Char,1,1,1,sc=Scale,co=CC[1],na='pHead'} iNew{'SpecialMesh',pHead,Scale=v3(1,1,1)*Scale/1.4,VertexColor=v3(1,1,1)/1.65,MeshId=as.rockhead,TextureId=as.rockheadt}
  5458. Stand=iPart{Char,1.5,2.9,1.1,sc=Scale,co=CC[1],na='Stand'}
  5459.  
  5460. for i,n in pairs(so) do
  5461. local v=iNew{'Sound',Torso,Volume=1,Pitch=1,Looped=false,Name=v,SoundId=as[n]}
  5462. so[n]=v
  5463. end
  5464.  
  5465.  
  5466. LSho=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LSho'}
  5467. LArm=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LArm'}
  5468.  
  5469. RSho=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RSho'}
  5470. RArm=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RArm'}
  5471.  
  5472. LThi=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LThi'}
  5473. LLeg=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='LLeg'}
  5474.  
  5475. RThi=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RThi'}
  5476. RLeg=iPart{Char,1,1.5,1,sc=Scale,co=CC[1],na='RLeg'}
  5477.  
  5478.  
  5479.  
  5480. nov3=v3(0,0,0)
  5481. Marble={}
  5482. MarbleSpeed=0.2
  5483. MarbleMax=12
  5484. for i,v in pairs({pTorso,LSho,RSho,LArm,RArm,LThi,RThi,LLeg,RLeg}) do
  5485. v.Material=Mat
  5486. local VS=v.Size
  5487. local va=1.2
  5488. --v.Size=v.Size/1.5
  5489. local vv=v:Clone()
  5490. for x=-1,1,2 do
  5491. for y=-1,1,2 do
  5492. for z=-1,1,2 do
  5493. local marb=vv:Clone() marb.Size=VS/mran2(1.8,2.2) marb.Parent=v marb.Name=x..y..z
  5494. local wmarb=iNew{'Weld',marb,Part0=v,Part1=marb,C0=cn(VS.x/4*x/va,VS.y/4*y,VS.z/4*z/va)*ca(mran(-MarbleMax,MarbleMax),mran(-MarbleMax,MarbleMax),mran(-MarbleMax,MarbleMax))}
  5495. Marble[#Marble+1]={wmarb,mran(-1,1),mran(-1,1),mran(-1,1)}
  5496. end end end
  5497. iNew{'BlockMesh',v,Scale=v3(1,1,1)/1.5}
  5498. v.Transparency=0 --.995
  5499. end
  5500.  
  5501. for i,v in pairs(Char:children()) do if v:IsA'BasePart' and v.Name~='Torso' then v.CFrame=Torso.CFrame end end
  5502.  
  5503. Head.Transparency=0.99
  5504. Head.CanCollide=false
  5505. Neck=iNew{'Weld',Torso,Part0=Torso,Part1=Head,C0=cn(0,0,0)}
  5506. pNeck=iNew{'Weld',Torso,Part0=pTorso,Part1=pHead,C0=cn(0,1.5*Scale,0)}
  5507. Hum=iNew{'Humanoid',Char}
  5508.  
  5509.  
  5510. Torso.Transparency=1
  5511. wTorso=iNew{'Weld',Torso,Part0=Torso,Part1=pTorso,C0=cn(0,-2.5*Scale,0)*ca(0,0,0)}
  5512. oTorso=cn(0,0,0)
  5513.  
  5514. Stand.Transparency=1
  5515. wStand=iNew{'Weld',Torso,Part0=Torso,Part1=Stand,C0=cn(0,-2.5*Scale,0)}
  5516.  
  5517. wLSho=iNew{'Weld',LSho,Part0=pTorso,Part1=LSho,C0=cn(-1.5*Scale,0.75*Scale,0),C1=cn(0,0.25*Scale,0)}
  5518. wLArm=iNew{'Weld',LArm,Part0=LSho,Part1=LArm,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  5519.  
  5520. wRSho=iNew{'Weld',RSho,Part0=pTorso,Part1=RSho,C0=cn(1.5*Scale,0.75*Scale,0),C1=cn(0,0.25*Scale,0)}
  5521. wRArm=iNew{'Weld',RArm,Part0=RSho,Part1=RArm,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  5522.  
  5523. wLThi=iNew{'Weld',LThi,Part0=pTorso,Part1=LThi,C0=cn(-0.5*Scale,-1*Scale,0),C1=cn(0,0.75*Scale,0)}
  5524. wLLeg=iNew{'Weld',LLeg,Part0=LThi,Part1=LLeg,C0=cn(1,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  5525.  
  5526. wRThi=iNew{'Weld',RThi,Part0=pTorso,Part1=RThi,C0=cn(0.5*Scale,-1*Scale,0),C1=cn(0,0.75*Scale,0)}
  5527. wRLeg=iNew{'Weld',RLeg,Part0=RThi,Part1=RLeg,C0=cn(0,-0.75*Scale,0),C1=cn(0,0.75*Scale,0)}
  5528.  
  5529. wLSho.C0=cn(-1.5*Scale,0.75*Scale,0)*ca(0,0,-135) --a,b
  5530. wLArm.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --c,d
  5531. wRSho.C0=cn(1.5*Scale,0.75*Scale,0)*ca(0,0,135) --e,f
  5532. wRArm.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --g,h
  5533. ----
  5534. wLThi.C0=cn(-0.5*Scale,-1*Scale,0)*ca(0,0,-45) --i,j
  5535. wLLeg.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --k,l
  5536. wRThi.C0=cn(0.5*Scale,-1*Scale,0)*ca(0,0,45) --m,n
  5537. wRLeg.C0=cn(0,-0.75*Scale,0)*ca(0,0,0) --o,p
  5538.  
  5539. BG=iNew{'BodyGyro',Torso,maxTorque=nov3}
  5540. BP=iNew{'BodyPosition',Torso,maxForce=nov3}
  5541. fUNDYING=Hum.Died:connect(UNDYING)
  5542. LimbNames={'LSho','RSho','LArm','RArm','RThi','LThi','RLeg','LLeg'}
  5543. for i=1,8 do local v=LimbNames[i] LimbNames[v]=getfenv()["w"..v] end
  5544. RootLimbs={pHead,pTorso,LSho,RSho,LArm,RArm,RThi,LThi,RLeg,LLeg}
  5545. Anim,LegAnim,ArmAnim='Sit','Sit','Sit'
  5546. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  5547. SetWeld(wLSho,0,1,1,a,b,v3(-1.5*Scale,0.5*Scale,0),v3(0,0,-10),1)
  5548. SetWeld(wLArm,0,1,1,c,d,v3(0,-0.75*Scale,0),v3(10,0,10),1)
  5549. SetWeld(wRSho,0,1,1,e,f,v3(1.5*Scale,0.5*Scale,0),v3(0,0,10),1)
  5550. SetWeld(wRArm,0,1,1,g,h,v3(0,-0.75*Scale,0),v3(10,0,-10),1)
  5551. SetWeld(wLThi,0,1,1,i,j,v3(-0.5*Scale,-1*Scale,0),v3(15,0,-5),1)
  5552. SetWeld(wLLeg,0,1,1,k,l,v3(0,-0.75*Scale,0),v3(-15,0,5),1)
  5553. SetWeld(wRThi,0,1,1,m,n,v3(0.5*Scale,-1*Scale,0),v3(15,0,5),1)
  5554. SetWeld(wRLeg,0,1,1,o,p,v3(0,-0.75*Scale,0),v3(-15,0,-5),1)
  5555. Oa,Ob,Oc,Od,Oe,Of,Og,Oh,Oi,Oj,Ok,Ol,Om,On,Oo,Op=GetPose()
  5556. SetWeld(wLSho,0,1,1,nov3,nov3,a,b,1)
  5557. SetWeld(wLArm,0,1,1,nov3,nov3,c,d,1)
  5558. SetWeld(wRSho,0,1,1,nov3,nov3,e,f,1)
  5559. SetWeld(wRArm,0,1,1,nov3,nov3,g,h,1)
  5560. SetWeld(wLThi,0,1,1,nov3,nov3,i,j,1)
  5561. SetWeld(wLLeg,0,1,1,nov3,nov3,k,l,1)
  5562. SetWeld(wRThi,0,1,1,nov3,nov3,m,n,1)
  5563. SetWeld(wRLeg,0,1,1,nov3,nov3,o,p,1)
  5564. end
  5565.  
  5566. function GetPose()
  5567. local a,b=GetWeld(wLSho,0)
  5568. local c,d=GetWeld(wLArm,0)
  5569. local e,f=GetWeld(wRSho,0)
  5570. local g,h=GetWeld(wRArm,0)
  5571. local i,j=GetWeld(wLThi,0)
  5572. local k,l=GetWeld(wLLeg,0)
  5573. local m,n=GetWeld(wRThi,0)
  5574. local o,p=GetWeld(wRLeg,0)
  5575. local q,r=GetWeld(wTorso,0)
  5576. return a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r
  5577. end
  5578.  
  5579. MakeAI(SpawnPoint)
  5580.  
  5581. ASpeed=28
  5582. coroutine.resume(coroutine.create(function()
  5583. SetWeld(wLSho,0,1,1,nov3,nov3,wLSho.C0.p,v3(45,0,-10),1)
  5584. SetWeld(wLArm,0,1,1,nov3,nov3,wLArm.C0.p,v3(45,0,10),1)
  5585. SetWeld(wRSho,0,1,1,nov3,nov3,wRSho.C0.p,v3(45,0,10),1)
  5586. SetWeld(wRArm,0,1,1,nov3,nov3,wRArm.C0.p,v3(45,0,-10),1)
  5587. SetWeld(wLThi,0,1,1,nov3,nov3,v3(-0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,-12),1)
  5588. SetWeld(wLLeg,0,1,1,nov3,nov3,wLLeg.C0.p,v3(-70,0,12),1)
  5589. SetWeld(wRThi,0,1,1,nov3,nov3,v3( 0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,12),1)
  5590. SetWeld(wRLeg,0,1,1,nov3,nov3,wRLeg.C0.p,v3(-70,0,-12),1)
  5591. SetWeld(wTorso,0,1,1,oTorso,nov3,v3(0,-3*Scale,0),nov3,1)
  5592. wait(1)
  5593. Anim='Standing'
  5594. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  5595. for x=1,ASpeed do
  5596. SetWeld(wTorso,0,x,ASpeed,wTorso.C0.p,nov3,oTorso,nov3,1)
  5597. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.5*Scale,0.5*Scale,0),v3(0,0,-10),1)
  5598. SetWeld(wLArm,0,x,ASpeed,c,d,v3(0,-0.75*Scale,0),v3(10,0,10),1)
  5599. SetWeld(wRSho,0,x,ASpeed,e,f,v3(1.5*Scale,0.5*Scale,0),v3(0,0,10),1)
  5600. SetWeld(wRArm,0,x,ASpeed,g,h,v3(0,-0.75*Scale,0),v3(10,0,-10),1)
  5601. SetWeld(wLThi,0,x,ASpeed,i,j,v3(-0.5*Scale,-1*Scale,0),v3(15,0,-5),1)
  5602. SetWeld(wLLeg,0,x,ASpeed,k,l,v3(0,-0.75*Scale,0),v3(-15,0,5),1)
  5603. SetWeld(wRThi,0,x,ASpeed,m,n,v3(0.5*Scale,-1*Scale,0),v3(15,0,5),1)
  5604. SetWeld(wRLeg,0,x,ASpeed,o,p,v3(0,-0.75*Scale,0),v3(-15,0,-5),1)
  5605. wait()
  5606. end
  5607. ArmAnim='None'
  5608. LegAnim='None'
  5609. Anim='None'
  5610. end))
  5611. --Target=PChar
  5612. function Stay(bool,cff)
  5613. BG.maxTorque=bool and v3(1,1,1)/0 or nov3 BG.cframe=cff or Torso.CFrame
  5614. BP.maxForce=BG.maxTorque BP.position=Torso.Position
  5615. end
  5616. function fMarble(Ch,func)
  5617. for i,v in pairs(Ch:children()) do
  5618. for x=-1,1,2 do
  5619. for y=-1,1,2 do
  5620. for z=-1,1,2 do
  5621. if v:findFirstChild(x..y..z) then func(v[x..y..z]) end
  5622. end end end
  5623. end
  5624. end
  5625. function ReturnAnim()
  5626. local ne1,ne2=GetWeld(pNeck,0)
  5627. local wt1,wt2=GetWeld(wTorso,0)
  5628. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  5629. for x=1,ASpeed do
  5630. SetWeld(wLSho,0,x,ASpeed,a,b,Oa,Ob,1)
  5631. SetWeld(wLArm,0,x,ASpeed,c,d,Oc,Od,1)
  5632. SetWeld(wRSho,0,x,ASpeed,e,f,Oe,Of,1)
  5633. SetWeld(wRArm,0,x,ASpeed,g,h,Og,Oh,1)
  5634. SetWeld(wLThi,0,x,ASpeed,i,j,Oi,Oj,1)
  5635. SetWeld(wLLeg,0,x,ASpeed,k,l,Ok,Ol,1)
  5636. SetWeld(wRThi,0,x,ASpeed,m,n,Om,On,1)
  5637. SetWeld(wRLeg,0,x,ASpeed,o,p,Oo,Op,1)
  5638. SetWeld(wTorso,0,x,ASpeed,wt1,wt2,oTorso,nov3,1)
  5639. SetWeld(pNeck,0,x,ASpeed,ne1,ne2,v3(0,1.5,0)*Scale,nov3,1)
  5640. wait()
  5641. end
  5642. end
  5643.  
  5644. ChatConnection=Player.Chatted:connect(function(msg)
  5645. coroutine.resume(coroutine.create(function()
  5646. if not Char.Parent then return end
  5647. local Sep,sep=se(';',msg)
  5648. local p1,p2=findplayer(Sep[2]),findplayer(Sep[3])
  5649. local cmd=sep[1]
  5650. --print(Sep[1])
  5651. --print(LimbNames[Sep[1]])
  5652. Tt=(p1 and p1.Character and p1.Character:findFirstChild'Torso') and p1.Character.Torso or nil
  5653. if cmd=='sit' and (Anim=='None' or Anim=='Follow') then
  5654. Anim='Sitting'
  5655. Hum:MoveTo(Torso.Position,Torso)
  5656. LegAnim,ArmAnim='Sit','Sit'
  5657. for x=1,ASpeed do
  5658. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(45,0,-10),1)
  5659. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(45,0,10),1)
  5660. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(45,0,10),1)
  5661. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(45,0,-10),1)
  5662. SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,-12),1)
  5663. SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(-70,0,12),1)
  5664. SetWeld(wRThi,0,x,ASpeed,Om,On,v3( 0.5*Scale,-0.6*Scale,-0.5*Scale),v3(125,0,12),1)
  5665. SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(-70,0,-12),1)
  5666. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-3*Scale,0),nov3,1)
  5667. wait()
  5668. end
  5669. Anim='Sit'
  5670. elseif (cmd=='stand' or cmd=='stop') and (Anim=='Roll' or Anim=='Sit' or Anim=='Follow' or Anim=='Form' or Anim=='Dance' or Anim=='Grab') then
  5671. if Anim=='Sit' or Anim=='Form' or Anim=='Dance' or Anim=='Roll' then
  5672. Anim='Returning'
  5673. ReturnAnim()
  5674. else
  5675. Target=nil
  5676. wait(0.2)
  5677. Hum:MoveTo(Torso.Position,Torso)
  5678. end
  5679. LegAnim,ArmAnim,Anim='None','None','None'
  5680. elseif cmd=='follow' and Tt and Anim=='None' then
  5681. Anim='Follow'
  5682. Target=p1.Character
  5683. elseif cmd=='shoot' and Tt and RArm['1-11'].Transparency~=1 and ArmAnim=='None' then
  5684. Target=p1.Character
  5685. ArmAnim='Shoot'
  5686. FaceBG(Tt.Position)
  5687. wait(0.1)
  5688. local cff=cn(pTorso.CFrame.p,v3(Tt.Position.x,pTorso.Position.y,Tt.Position.z))
  5689. local ofs=cff:toObjectSpace(cn(cff*cn(1.5*Scale,0.5*Scale,0).p,Tt.CFrame*cn(0,2,0).p)*ca(90,0,0)*cn(0,-0.25*Scale,0))
  5690. local x,y,z=ofs:toEulerAnglesXYZ()
  5691. local rot=v3(mdeg(x),mdeg(y),mdeg(z))
  5692. for q=1,ASpeed do
  5693. SetWeld(wRArm,0,q,ASpeed,Og,Oh,Og,nov3,1)
  5694. SetWeld(wRSho,0,q,ASpeed,Oe,Of,ofs.p,rot,1)
  5695. SetWeld(wRSho,1,q,ASpeed,v3(0,0.25*Scale,0),nov3,nov3,nov3,1)
  5696. wait()
  5697. end
  5698. for y=-1,1,2 do for x=-1,1,2 do for z=-1,1,2 do
  5699. local new=RArm[x..y..z]:Clone() new.Parent=RArm game.Debris:AddItem(new,8) new.Touched:connect(function(hit) Damage(hit.Parent:findFirstChild'Humanoid') end)
  5700. new.CFrame=RArm[x..y..z].CFrame*cn(0,-Scale*1.5,0) new.CanCollide=true new.Velocity=cn(new.Position,Target.Torso.Position).lookVector*((new.Position-Target.Torso.Position).magnitude*20+900)
  5701. RArm[x..y..z].Transparency=1 so.Block:Play() wait(0.06)
  5702. end end end
  5703. RArm.Transparency=1
  5704. delay(1,function()
  5705. for x=-1,1,2 do for y=-1,1,2 do for z=-1,1,2 do local new=RArm[x..y..z]:Clone() new.Transparency=0 new.CanCollide=false new.Name='f'..new.Name new.Parent=RArm new.CFrame=RArm.CFrame*cn(Scale*x*2,Scale*-3,Scale*z*2)
  5706. iNew{'BodyPosition',new,maxForce=v3(1,1,1)/0,position=RArm[x..y..z].Position} wait(0.14) end end end
  5707. DoLoop(35,function(i) for x=-1,1,2 do for y=-1,1,2 do for z=-1,1,2 do RArm['f'..x..y..z].BodyPosition.position=RArm[x..y..z].Position if i==1 then RArm['f'..x..y..z]:Remove() RArm[x..y..z].Transparency=0 RArm.Transparency=0 end end end end end)
  5708. end)
  5709. for q=1,ASpeed do
  5710. SetWeld(wRArm,0,q,ASpeed,Og,nov3,Og,Oh,1)
  5711. SetWeld(wRSho,0,q,ASpeed,ofs.p,rot,Oe,Of,1)
  5712. SetWeld(wRSho,1,q,ASpeed,nov3,nov3,v3(0,0.25*Scale,0),nov3,1)
  5713. wait()
  5714. end
  5715. BG.maxTorque=nov3
  5716. ArmAnim='None'
  5717. elseif cmd=='slam' and (Anim=='None' or Anim=='Follow') and Tt then
  5718. Target=p1
  5719. local lTt=Tt
  5720. Anim='Follow'
  5721. repeat Hum:MoveTo(Tt.Position+v3(0.5,0.5,0.5),Tt) wait(0.2) until lTt~=Tt or (Tt.Position-pTorso.Position).magnitude<10+Scale*5.5 or Anim~='Follow'
  5722. if Anim~='Follow' then BG.maxTorque=nov3 return end
  5723. if lTt~=Tt then return end
  5724. Anim,LegAnim,ArmAnim='Slam','',''
  5725. Hum:MoveTo(Torso.Position,Torso)
  5726. FaceBG(Tt.Position)
  5727. Stay(true,BG.cframe)
  5728. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p=GetPose()
  5729. ASpeed2=15
  5730. for x=1,ASpeed2 do
  5731. SetWeld(wLSho,0,x,ASpeed2,a,b,Oa,v3(180,0,0),1)
  5732. SetWeld(wRSho,0,x,ASpeed2,e,f,Oe,v3(180,0,0),1)
  5733. SetWeld(wTorso,0,x,ASpeed2,nov3,nov3,v3(0,3,0)*Scale,nov3,1)
  5734. wait()
  5735. end
  5736. for x=1,ASpeed2 do
  5737. SetWeld(wTorso,0,x,ASpeed2,v3(0,3,0)*Scale,nov3,v3(0,-3*Scale+2.5,-6*Scale),v3(-89,0,0),1)
  5738. wait()
  5739. end
  5740. AOEFind(pTorso.Position,6.5*Scale,function(Hum) Damage(Hum,3,true) Hum.Sit=true end)
  5741. MeshEffect(35,Torso.CFrame*cn(0,-3.5*Scale,-6*Scale)*ca(90,0,0),nil,v3(2,2,1)*Scale,v3(12,12,5)*Scale,0.2,1,'Light stone grey',as.ring)
  5742. wait(0.5)
  5743. for x=1,ASpeed do
  5744. SetWeld(wTorso,0,x,ASpeed,v3(0,-3*Scale+2.5,-6*Scale),v3(-90,0,0),nov3,nov3,1)
  5745. SetWeld(wLSho,0,x,ASpeed,Oa,v3(180,0,0),Oa,Ob,1)
  5746. SetWeld(wRSho,0,x,ASpeed,Oe,v3(180,0,0),Oe,Of,1)
  5747. wait()
  5748. end
  5749. Stay(false)
  5750. Anim,LegAnim,ArmAnim='None','None','None'
  5751. elseif cmd=='boulder' and Anim=='None' then
  5752. Target=p1.Character
  5753. Anim,LegAnim,ArmAnim='','',''
  5754. Stay(true)
  5755. FaceBG(Tt.Position)
  5756. for x=1,ASpeed do
  5757. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(135,0,0),1)
  5758. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,0),1)
  5759. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(135,0,0),1)
  5760. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-10),1)
  5761. SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5,-0.5,0.25)*Scale,v3(45,0,-15),1)
  5762. SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(0,0,0),1)
  5763. SetWeld(wRThi,0,x,ASpeed,Om,On,v3( 0.5,-0.5,0.25)*Scale,v3(45,0,15),1)
  5764. SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(0,0,0),1)
  5765. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-1.5,-1.5)*Scale,v3(-90,0,0),1)
  5766. wait()
  5767. end
  5768. wait(0.2)
  5769. local boulder=iPart{Char,1,1,1,type='WedgePart'} boulder.Material=Mat
  5770. local wm=iNew{'SpecialMesh',boulder,Scale=v3(4,3,4)*Scale,MeshType='Wedge'}
  5771. local wb=iNew{'Weld',boulder,Part0=RArm,Part1=boulder,C0=cn(-1.5*Scale,-2.3*Scale,0)*ca(180,180,0)}
  5772. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  5773. for x=1,ASpeed*2 do
  5774. SetWeld(wLSho,0,x,ASpeed*2,a,b,a,v3(225,0,0),1)
  5775. SetWeld(wLArm,0,x,ASpeed*2,c,d,c,v3(45,0,0),1)
  5776. SetWeld(wRSho,0,x,ASpeed*2,e,f,e,v3(225,0,0),1)
  5777. SetWeld(wRArm,0,x,ASpeed*2,g,h,g,v3(45,0,0),1)
  5778. SetWeld(wLThi,0,x,ASpeed*2,i,j,Oi,v3(0,0,-15),1)
  5779. SetWeld(wLLeg,0,x,ASpeed*2,k,l,k,v3(0,0,0),1)
  5780. SetWeld(wRThi,0,x,ASpeed*2,m,n,Om,v3(0,0,15),1)
  5781. SetWeld(wRLeg,0,x,ASpeed*2,o,p,o,v3(0,0,0),1)
  5782. SetWeld(wTorso,0,x,ASpeed*2,q,r,nov3,nov3,1)
  5783. wait()
  5784. end
  5785. FaceBG(Tt.Position)
  5786. for x=1,ASpeed/2 do
  5787. SetWeld(wLSho,0,x,math.floor(ASpeed/2),a,v3(225,0,0),a,v3(90,0,0),1)
  5788. SetWeld(wLArm,0,x,math.floor(ASpeed/2),c,v3(45,0,0),c,v3(45,0,0),1)
  5789. SetWeld(wRSho,0,x,math.floor(ASpeed/2),e,v3(225,0,0),e,v3(90,0,0),1)
  5790. SetWeld(wRArm,0,x,math.floor(ASpeed/2),g,v3(45,0,0),g,v3(45,0,0),1)
  5791. wait()
  5792. end
  5793. local bcf=boulder.CFrame
  5794. wb:Remove()
  5795. wm:Remove()
  5796. boulder.Size=wm.Scale
  5797. boulder.CFrame=cn(boulder.Position,Target.Torso.Position)*cn(0,3,-1)*ca(0,180,0)
  5798. --boulder.Friction=0.1
  5799. boulder.Elasticity=0
  5800. boulder.Velocity=(boulder.CFrame*ca(0,180,0)).lookVector*((boulder.Position-Target.Torso.Position).magnitude*1+90)
  5801. boulder.RotVelocity=nov3
  5802. game.Debris:AddItem(boulder,8)
  5803. Stay(false)
  5804. ReturnAnim()
  5805. Anim,LegAnim,ArmAnim='None','None','None'
  5806. elseif cmd=='grab' and Tt and not Grabbing then
  5807. Target=p1
  5808. local lTt=Tt
  5809. Anim='Follow'
  5810. repeat Hum:MoveTo(Tt.Position+v3(0.5,0.5,0.5),Tt) wait(0.2) until lTt~=Tt or (Tt.Position-Stand.CFrame*cn(0,-Stand.Size.y/2+1,-2.8*Scale).p).magnitude<10 or Anim~='Follow'
  5811. if Anim~='Follow' then BG.maxTorque=nov3 return end
  5812. if lTt~=Tt then return end
  5813. pcall(function() Tt.Parent.Humanoid.PlatformStand=true end)
  5814. Hum:MoveTo(Torso.Position,Torso)
  5815. Anim,LegAnim,ArmAnim='Grab','',''
  5816. FaceBG(Tt.Position)
  5817. for x=1,ASpeed do
  5818. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(-30,0,-30),1)
  5819. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,0),1)
  5820. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(145,0,-30),1)
  5821. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,0),1)
  5822. SetWeld(wLThi,0,x,ASpeed,Oi,Oj,v3(-0.5,-0.4,0.3)*Scale,v3(70,0,0),1)
  5823. SetWeld(wLLeg,0,x,ASpeed,Ok,Ol,Ok,v3(-20,0,0),1)
  5824. SetWeld(wRThi,0,x,ASpeed,Om,On,v3(0.5,-0.5,-0.3)*Scale,v3(135,0,0),1)
  5825. SetWeld(wRLeg,0,x,ASpeed,Oo,Op,Oo,v3(-90,0,0),1)
  5826. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-2,-1.5)*Scale,v3(-90,0,0),1)
  5827. wait()
  5828. end
  5829. local ofs=RArm.CFrame:toObjectSpace(Tt.CFrame)
  5830. Tt.Parent.Humanoid.PlatformStand=true
  5831. Grabbing=iNew{'Weld',RArm,Part0=RArm,Part1=Tt,C0=ofs}
  5832. local a,b=GetWeld(Grabbing,0)
  5833. for x=1,ASpeed do
  5834. SetWeld(Grabbing,0,x,ASpeed,a,b,v3(0,-0.75*Scale-1,0),v3(-90,0,0),1)
  5835. wait()
  5836. end
  5837. Stay(false)
  5838. ReturnAnim()
  5839. Anim,LegAnim,ArmAnim='None','None','None'
  5840. elseif cmd=='dance' and (Anim=='None' or Anim=='Follow') then
  5841. Hum:MoveTo(pTorso.Position,pTorso)
  5842. Anim,ArmAnim,LegAnim='Dance','Dance','Dance'
  5843. local ASpeed=math.floor(ASpeed/2)
  5844. repeat
  5845. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  5846. for x=1,ASpeed do
  5847. if Anim~='Dance' then break end
  5848. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.2,0.5,-0.25)*Scale,v3(35,0,30),1)
  5849. SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(25,0,0),1)
  5850. SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.2,0.5,-0.25)*Scale,v3(45,0,-30),1)
  5851. SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(25,0,0),1)
  5852. SetWeld(wLThi,0,x,ASpeed,i,j,i,v3(0,0,0),1)
  5853. SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(0,0,0),1)
  5854. SetWeld(wRThi,0,x,ASpeed,m,n,m,v3(45,0,20),1)
  5855. SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(-45,0,-20),1)
  5856. wait()
  5857. end
  5858. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  5859. for x=1,ASpeed do
  5860. if Anim~='Dance' then break end
  5861. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.2,0.5,-0.25)*Scale,v3(95,0,30),1)
  5862. SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(-10,0,0),1)
  5863. SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.2,0.5,-0.25)*Scale,v3(105,0,-30),1)
  5864. SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(-10,0,0),1)
  5865. SetWeld(wLThi,0,x,ASpeed,i,j,i,v3(45,0,-20),1)
  5866. SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(-45,0,20),1)
  5867. SetWeld(wRThi,0,x,ASpeed,m,n,m,v3(0,0,0),1)
  5868. SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(0,0,0),1)
  5869. wait()
  5870. end
  5871. until Anim~='Dance'
  5872. elseif cmd=='roll' and (Anim=='None' or Anim=='Follow') then
  5873. Target=p1
  5874. local lTt=Tt
  5875. Anim,ArmAnim,LegAnim='Roll','',''
  5876. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  5877. local n1,n2=GetWeld(pNeck,0)
  5878. for x=1,ASpeed do
  5879. SetWeld(wLSho,0,x,ASpeed,a,b,v3(-1.5,0.5,0)*Scale,v3(0,0,-45),1)
  5880. SetWeld(wLArm,0,x,ASpeed,c,d,c,v3(0,0,90),1)
  5881. SetWeld(wRSho,0,x,ASpeed,e,f,v3( 1.5,0.5,0)*Scale,v3(0,0,45),1)
  5882. SetWeld(wRArm,0,x,ASpeed,g,h,g,v3(0,0,-90),1)
  5883. SetWeld(wLThi,0,x,ASpeed,i,j,v3(0,1, 0.5)*Scale,v3(-30,0,0),1)
  5884. SetWeld(wLLeg,0,x,ASpeed,k,l,k,v3(60,0,0),1)
  5885. SetWeld(wRThi,0,x,ASpeed,m,n,v3(0,1,-0.5)*Scale,v3(30,0,0),1)
  5886. SetWeld(wRLeg,0,x,ASpeed,o,p,o,v3(-60,0,0),1)
  5887. SetWeld(pNeck,0,x,ASpeed,n1,n2,v3(0,0,0),n2,1)
  5888. SetWeld(wTorso,0,x,ASpeed,oTorso,nov3,v3(0,-2,0)*Scale,nov3,1)
  5889. wait()
  5890. end
  5891. tWS[2]=3
  5892. repeat
  5893. local cf=Torso.CFrame*cn(mran2(-1,1)*Scale,-4*Scale,0.5*Scale)*ca(90+mran(-20,20),mran(-30,30),0)
  5894. MeshEffect(24,cf,cf*cn(0,4*Scale,0),v3(0.5,0.5,0.5)*Scale,v3(mran2(1,4),mran2(3,5),mran2(1,3))*Scale,0.1,1,'Dark stone grey','Brick')
  5895. Hum:MoveTo(Tt.CFrame*cn(0,0,Scale).p,Tt) wTorso.C0=wTorso.C0*ca(-20,0,0) wait(0.035) until lTt~=Tt or (Tt.Position-Stand.CFrame*cn(0,-Stand.Size.y/2+1,-2.8*Scale).p).magnitude<6 or Anim~='Roll'
  5896. tWS[2]=1
  5897. ClearWeld(wTorso)
  5898. if Anim~='Roll' then return end
  5899. Hum:MoveTo(Torso.Position+v3(0,1,0),Torso)
  5900. Torso.Anchored=true Torso.Velocity=nov3
  5901. local cf=Stand.CFrame*cn(0,0,-1.5*Scale)*ca(-45,0,0) --iPart{Char,1,1,1,co='Black',cf=cf,an=true}
  5902. MeshEffect(50,cf,nil,v3(3.5,3.5,2)*Scale,v3(11,11,6)*Scale,0.1,1,'White',as.ring)
  5903. for i=1,16 do
  5904. local cf=cf*ca(90,360*(i/16),0)*ca(45,0,0)
  5905. MeshEffect(40,cf,cf*cn(0,10*Scale,0),v3(0.2,2,0.2)*Scale,v3(1,5,1)*Scale,0.1,1,'','Sphere')
  5906. end
  5907. AOEFind(cf.p,6.5*Scale,function(Hum,v) Damage(Hum,2,true) Hum.Sit=true v.Velocity=cn(pTorso.Position,v.Position).lookVector*50 end)
  5908. wait(0.2)
  5909. Torso.Anchored=false
  5910. ReturnAnim()
  5911. Hum:MoveTo(Torso.Position,Torso)
  5912. Anim,LegAnim,ArmAnim='None','None','None'
  5913. elseif cmd=='beam' and (Anim=='None' or Anim=='Follow') then
  5914. Anim='beam'
  5915. local che =iPart{Char,1,1,1,sc=Scale,co=CC[1],ma=Mat} local chew=iNew{'Weld',che ,Part0=pTorso,Part1=che}
  5916. local che2=iPart{che ,0.8*Scale,0.2,0.8*Scale,co='Really black'} local che2w=iNew{'Weld',che2,Part0=che,Part1=che2}
  5917. local chem=iNew{'CylinderMesh',che} iNew{'CylinderMesh',che2}
  5918. local chest,chex,i={},0,0
  5919. for x=-1,1,2 do for y=-1,1,2 do i=i+1 chest[i]={pTorso[x..y..'-1']} chest[i][2]=chest[i][1].Weld chest[i][3]=chest[i][2].C0
  5920. local xx,yy,zz=chest[i][2].C0:toEulerAnglesXYZ() chest[i][4]=v3(mdeg(xx),mdeg(yy),mdeg(zz))
  5921. chest[i][5]=cn(0.45*x*Scale,0,-0.5*Scale)*chest[i][3] chest[i][6]=chest[i][4]+v3(0,-105*x,0) end end
  5922. local len=1.75
  5923. local dochest=function(v,chexx,adj)
  5924. local p=v/ASpeed
  5925. chex=adj*p
  5926. chem.Scale=v3(1,len*p,1)
  5927. chew.C0=ca(chexx+chex,0,0)*cn(0,len/2*p*Scale,0)
  5928. che2w.C0=cn(0,len/2*p*Scale,0)
  5929. for i=1,4 do SetWeld(chest[i][2],0,v,ASpeed,chest[i][3],chest[i][4],chest[i][5],chest[i][6],1) end
  5930. end
  5931. for v=1,ASpeed do if Tt then FaceBG(Tt.Position) end dochest(v,-90,-45) wait() end
  5932. local beam=iPart{Char,0.7*Scale,1,0.7*Scale,co='New Yeller',an=true,tr=0.3} beamm=iNew{'CylinderMesh',beam}
  5933. for i=1,ASpeed*3 do
  5934. local p=i/ASpeed*3
  5935. chex=90*math.sin((math.pi/2)/(ASpeed*3)*i)
  5936. chew.C0=ca(-135+chex,0,0)*cn(0,len/2*Scale,0)
  5937. local hit,pos=ray(che2.Position,che2.Position-che2.CFrame*cn(0,-1,0).p,Char)
  5938. local mag=(che2.Position-pos).magnitude local p1,p2=che2.Position+v3(mran2(-1,1),mran2(-1,1),mran2(-1,1))/3,pos+v3(mran2(-1,1),mran2(-1,1),mran2(-1,1))/3
  5939. beam.CFrame=cn(p1,p2)*cn(0,0,-mag/2)*ca(90,0,0) beamm.Scale=v3(1,mag+(Scale/3),1)
  5940. AOEFind(pos,Scale*2,function(Hum) Damage(Hum,2.5) end)
  5941. if i%2==0 then for i=1,5 do local cf=cn(pos)*ca(0,mran(-180,180),mran(-95,95)) MeshEffect(8,cf,cf*cn(0,Scale*2.2,0),v3(0.1,0.4,0.1)*Scale,v3(0.4,3,0.4)*Scale,0.2,1,CC[mran(2,3)],as.cone) end
  5942. MeshEffect(8,cn(pos),nil,v3(0.8,0.8,0.8)*Scale,v3(4,4,4)*Scale,0.2,1,CC[mran(2,3)],'Sphere') end
  5943. if Tt then FaceBG(Tt.Position) end
  5944. wait()
  5945. end
  5946. DoLoop(12,function(i) beam.Transparency=0.3+i*0.7 if i==1 then beam:Remove() end end)
  5947. for v=ASpeed,0,-1 do dochest(v,-90,45) wait() end
  5948. Stay(false)
  5949. che:Remove()
  5950. Anim='None'
  5951. ---------------------------------------------------------------------------=---WWWWWWWWWWWWWWWWWW
  5952. elseif cmd=='box' and (Anim=='None' or Anim=='Follow') then
  5953. Anim,ArmAnim='cart','cart'
  5954. for x=1,ASpeed do
  5955. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(90,0,10),1)
  5956. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,25),1)
  5957. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(90,0,-10),1)
  5958. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-25),1)
  5959. wait()
  5960. end
  5961. Stay(true)
  5962. local spawn=RArm.CFrame*cn(0,-0.75*Scale-2,0)*ca(-90,0,0)
  5963. local des=iPart{Char,1,1,1,an=true,ma=Mat,cf=spawn,ca=false}
  5964. for i=1,6,0.2 do des.Size=v3(i,i,i) des.CFrame=spawn*cn(0,0,-i/2) wait() end
  5965. local cart=iNew{'Model',workspace,Name='Cart'}
  5966. local base=iPart{cart,4,1,5,ma=Mat,cf=des.CFrame} iNew{'BodyGyro',base}
  5967. for x=-1,1,2 do
  5968. local new=iPart{cart,0.5,4,5,ma=Mat,cf=base.CFrame} iNew{'Weld',new,Part0=base,Part1=new,C0=cn(1.75*x,2.5,0)}
  5969. local new=iPart{cart,3.5,4,0.5,ma=Mat,cf=base.CFrame} iNew{'Weld',new,Part0=base,Part1=new,C0=cn(0,2.5,2.25*x)}
  5970. end
  5971. for i=6,0.8,-0.2 do des.Size=v3(i,i,i) des.CFrame=spawn*cn(0,0,-i/2) wait() end des:Remove()
  5972. Stay(false)
  5973. ReturnAnim()
  5974. Anim,ArmAnim='None','None'
  5975. elseif cmd=='crush' and Grabbing and (Anim=='None' or Anim=='Follow') then
  5976. Anim,ArmAnim='crush','crush'
  5977. for x=1,ASpeed do
  5978. SetWeld(wLSho,0,x,ASpeed,Oa,Ob,Oa,v3(80,0,-160),1)
  5979. SetWeld(wLArm,0,x,ASpeed,Oc,Od,Oc,v3(0,0,80),1)
  5980. SetWeld(wRSho,0,x,ASpeed,Oe,Of,Oe,v3(80,0,160),1)
  5981. SetWeld(wRArm,0,x,ASpeed,Og,Oh,Og,v3(0,0,-80),1)
  5982. wait()
  5983. end
  5984. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r=GetPose()
  5985. wait(0.2)
  5986. for x=1,ASpeed/2 do
  5987. SetWeld(wLSho,0,x,ASpeed/2,a,b,Oa,v3(80,0,-14),1)
  5988. SetWeld(wLArm,0,x,ASpeed/2,c,d,Oc,v3(0,0,80),1)
  5989. SetWeld(wRSho,0,x,ASpeed/2,e,f,Oe,v3(80,0,14),1)
  5990. SetWeld(wRArm,0,x,ASpeed/2,g,h,Og,v3(0,0,-80),1)
  5991. wait()
  5992. end
  5993. MeshEffect(35,Grabbing.Part1.CFrame,nil,v3(2,2,1)*Scale,v3(7,7,3)*Scale,0.3,1,'Light stone grey',as.ring)
  5994. local crushjo=60
  5995. pcall(function() for i,v in pairs({'Neck','Left Shoulder','Right Shoulder','Left Hip','Right Hip'}) do local w=Grabbing.Part1.Parent.Torso[v] w.C1=w.C1*ca(mran(-crushjo,crushjo),mran(-crushjo,crushjo),mran(-crushjo,crushjo)) end end)
  5996. local hit=Grabbing.Part1
  5997. Grabbing:Remove() Grabbing=nil
  5998. wait(2)
  5999. pcall(function() hit.Parent.Humanoid.PlatformStand=false end)
  6000. ReturnAnim()
  6001. Anim,ArmAnim='None','None'
  6002. elseif cmd=='eat' and Grabbing and (Anim=='None' or Anim=='Follow') then
  6003. Anim,ArmAnim='Eat','Eat'
  6004. for x=1,ASpeed*2 do
  6005. SetWeld(wRSho,0,x,ASpeed*2,Oe,Of,Oe,v3(135,0,15),1)
  6006. SetWeld(wRArm,0,x,ASpeed*2,Og,Oh,Og,v3(45,-10,-100),1)
  6007. wait()
  6008. end
  6009. wait(1)
  6010. for x=1,40 do
  6011. SetWeld(wRSho,0,1,1,Oe,Of,Oe,v3(135+mran(-3,3),0,15+mran(-3,3)),1)
  6012. SetWeld(wRArm,0,1,1,Og,Oh,Og,v3(45,-10+mran(-12,12),-100+mran(-3,3)),1)
  6013. wait(0.05)
  6014. if x%2==0 then
  6015. local cf=Grabbing.Part1.CFrame*ca(180,mran(-180,180),mran(-40,40))*cn(0,1.5,0)
  6016. MeshEffect(24,cf,cf*cn(0,10,0),v3(0.2,2,0.2),v3(0.4,5,0.4),0.1,1,'Really red','Sphere')
  6017. end
  6018. end
  6019. Grabbing.Part1:BreakJoints()
  6020. pcall(function() Grabbing.Part1.Parent.Head:Remove() end)
  6021. Grabbing:Remove() Grabbing=nil
  6022. wait(2)
  6023. ReturnAnim()
  6024. Anim,ArmAnim='None','None'
  6025. elseif cmd=='drop' and Grabbing then
  6026. local hum=Grabbing.Part1.Parent.Humanoid Grabbing:Remove() Grabbing=nil hum.PlatformStand=false
  6027. elseif LimbNames[Sep[1]] and (Anim=='None' or Anim=='Form') then
  6028. Anim,ArmAnim,LegAnim='Form','Form','Form'
  6029. local v1,v2=GetWeld(LimbNames[Sep[1]],0)
  6030. local sepx=se(',',Sep[2])
  6031. for x=1,ASpeed*2 do
  6032. SetWeld(LimbNames[Sep[1]],0,x,ASpeed*2,v1,v2,v1,v3(tonumber(sepx[1]),tonumber(sepx[2]),tonumber(sepx[3])),1)
  6033. wait()
  6034. end
  6035. elseif cmd=='plode' then
  6036. Char:BreakJoints() wait()
  6037. local Pressure=tonumber(sep[2]) or 50
  6038. fMarble(Char,function(v) v.Velocity=cn(Torso.Position,v.Position).lookVector*Pressure end)
  6039. for i,v in pairs(RootLimbs) do v.Velocity=cn(Torso.Position,v.Position).lookVector*Pressure end
  6040. elseif cmd=='explode' then
  6041. iNew{'Explosion',pTorso,Position=pTorso.Position,BlastRadius=Scale*20}
  6042. elseif cmd=='goto' then
  6043. pcall(function()
  6044. Hum:MoveTo(Player:GetMouse().Hit.p,Player:GetMouse().Target) end)
  6045. elseif cmd=='newscale' and tonumber(sep[2]) then
  6046. Char:BreakJoints()
  6047. Scale=tonumber(sep[2])
  6048. if Scale<0.5 then Scale=0.5 end
  6049. if Scale>=100 then Scale=100 end
  6050. elseif cmd=='nobox' then
  6051. for i,v in pairs(workspace:children()) do if v.Name=='Cart' then v:Remove() end end
  6052. elseif cmd=='die' then
  6053. Char:BreakJoints()
  6054. elseif cmd=='brick' then
  6055. iPart{workspace,12,30,30,cf=Player.Character.Torso.CFrame*cn(0,10,-20),tr=0.5,an=true}
  6056. elseif cmd=='test' then
  6057. local pt=Player.Character.Torso.CFrame
  6058. MeshEffect(35,pt*cn(0,5,0)*ca(90,0,0),nil,v3(2,2,1)*Scale,v3(7,7,3)*Scale,0.2,1,'Light stone grey',as.ring)
  6059. else
  6060. end
  6061. end))
  6062. end)
  6063. keys={}
  6064. NewAnim={}
  6065. Player:GetMouse().KeyDown:connect(function(k)
  6066. coroutine.resume(coroutine.create(function() keys[k]=true
  6067. if (k=='q' or k=='e') and (Anim=='None' or Anim=='Laser') and (ArmAnim=='None' or ArmAnim=='Laser') and not NewAnim[k] then
  6068. NewAnim[k]=true
  6069. local w1,w2=k=='q' and wLSho or wRSho,k=='q' and wLArm or wRArm
  6070. local x=k=='q' and -1 or 1
  6071. local aa,bb=GetWeld(w1,0)
  6072. local cc,dd=GetWeld(w2,0)
  6073. local targ=w1.Part1.CFrame*cn(0,-333,0)
  6074. local tips={}
  6075. local co=0
  6076. local sho1=iPart{Char,0.35,RArm.Size.y/Scale+0.15 ,0.35,sc=Scale,co=CC[1]} iNew{'Weld',sho1,Part0=k=='q' and LArm or RArm,Part1=sho1} iNew{'CylinderMesh',sho1}
  6077. local sho2=iPart{Char,0.3,RArm.Size.y/Scale+0.16,0.3,sc=Scale,co='Really black'} iNew{'Weld',sho2,Part0=sho1,Part1=sho2} iNew{'CylinderMesh',sho2}
  6078. for x=-1,1,2 do for z=-1,1,2 do tips[#tips+1]={(k=='q' and LArm or RArm)[x..'-1'..z].Weld}
  6079. co=co+0.25
  6080. local asd=tips[#tips]
  6081. asd[2],asd[3]=GetWeld(asd[1],0)
  6082. local cf=ca(0,360*co,0)*cn(0,asd[2].y*1.8,-0.75*Scale)*ca(-20,0,0)
  6083. asd[4]=cf.p
  6084. local a,b,c=cf:toEulerAnglesXYZ()
  6085. asd[5]=v3(mdeg(a),mdeg(b),mdeg(c))
  6086. end end
  6087. for u=1,ASpeed/2 do
  6088. for i=1,4 do local asd=tips[i]
  6089. SetWeld(asd[1],0,u,ASpeed/2,asd[2],asd[3],asd[4],asd[5],1)
  6090. end wait()
  6091. end
  6092. repeat Anim,ArmAnim,LaserOn='Laser','Laser',true wait()
  6093. for i=1,4 do tips[i][1].C0=ca(0,15*x,0)*tips[i][1].C0 end
  6094. targ=TweenV3(1,12,targ,Player:GetMouse().Hit.p)
  6095. w1.C0=pTorso.CFrame:toObjectSpace(cn(pTorso.CFrame*cn(1.5*Scale*x,0.5*Scale,0).p,targ))*ca(90,0,0)
  6096. w2.C0=cn(0,-0.75*Scale,0)
  6097. until not keys[k]
  6098. ClearWeld(w1) ClearWeld(w2) for i=1,4 do ClearWeld(tips[i][1]) tips[i][6],tips[i][7]=GetWeld(tips[i][1],0) end
  6099. local a,b=GetWeld(w1,0)
  6100. local c,d=GetWeld(w2,0)
  6101. for z=1,ASpeed/2 do
  6102. for i=1,4 do SetWeld(tips[i][1],0,z,ASpeed/2,tips[i][6],tips[i][7],tips[i][2],tips[i][3],1) end
  6103. SetWeld(w1,0,z,ASpeed/2,a,b,aa,bb,1)
  6104. SetWeld(w2,0,z,ASpeed/2,c,d,cc,dd,1)
  6105. wait()
  6106. end
  6107. sho1:Remove() sho2:Remove()
  6108. NewAnim[k]=false
  6109. Anim,ArmAnim,LaserOn='None','None',false
  6110. end
  6111. end)) end)
  6112. Player:GetMouse().KeyUp:connect(function(k) keys[k]=false end)
  6113. Player:GetMouse().Button1Down:connect(function()
  6114. Button=true
  6115. if keys.f and Player:GetMouse().Target and Anim=='None' then
  6116. Hum:MoveTo(Player:GetMouse().Hit.p,Player:GetMouse().Target)
  6117. elseif (keys.q or keys.e) and LaserOn then
  6118. local pick=keys.q and 'q' or 'e'
  6119. repeat
  6120. local ofs=(pick=='q' and LArm or RArm).CFrame*ca(90,0,0)
  6121. if pick=='q' and keys.e then pick='e'
  6122. elseif pick=='e' and keys.q then pick='q' end
  6123. local part=iPart{Char,0.2,0.5,0.2,sc=Scale,co=CC[mran(2,3)],an=true,ma=Mat} iNew{'CylinderMesh',part}
  6124. Projectile(ofs,2*Scale,part,ca(-90,0,0),function(hit,pos)
  6125. AOEFind(pos,Scale*2,function(Hum,v) Damage(Hum) end)
  6126. end,
  6127. function(pos)
  6128. for i=1,5 do local cf=cn(pos)*ca(0,mran(-180,180),mran(-95,95)) MeshEffect(8,cf,cf*cn(0,Scale*2.2,0),v3(0.07,0.3,0.07)*Scale,v3(0.4,3,0.4)*Scale,0.2,1,CC[mran(2,3)],as.cone) end
  6129. MeshEffect(8,cn(pos),nil,v3(0.1,0.1,0.1)*Scale,v3(3,3,3)*Scale,0.2,1,CC[mran(2,3)],'Sphere') part:Remove() end)
  6130. wait((keys.q and keys.e) and 0.2 or 0.4)
  6131. until not Button or (not keys.q and not keys.e)
  6132. elseif 'swag'=='sweg' then
  6133. end
  6134. end)
  6135. Player:GetMouse().Button1Up:connect(function()
  6136. Button=false
  6137. end)
  6138.  
  6139. WalkAnim=0
  6140. Walking=false
  6141. WalkMulp=1
  6142. WalkMax=16
  6143. Hum.WalkSpeed=18
  6144. tWS={1,1,1,1,1,1,1}
  6145.  
  6146. Marbler=0
  6147. local cou=0
  6148. while Char.Parent do
  6149. cou=cou+1
  6150. --if cou%2==0 then print(cou) end
  6151. if Hum.Health>0 then
  6152. if Torso.Velocity.y>5 then Torso.Velocity=v3(Torso.Velocity.x,5,Torso.Velocity.z) end
  6153. Walking=v3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude>Hum.WalkSpeed-2 and true or false
  6154. if Walking and LegAnim=='None' then
  6155. WalkAnim=WalkAnim+WalkMulp
  6156. end
  6157. if WalkAnim>0 and not Walking then
  6158. WalkAnim=WalkAnim-1
  6159. elseif WalkAnim<0 and not Walking then
  6160. WalkAnim=WalkAnim+1
  6161. end
  6162. if math.abs(WalkAnim)>=WalkMax then WalkMulp=WalkMulp*-1 end
  6163. local WalkAdj=26
  6164. Neck.C0=Torso.CFrame:toObjectSpace(pHead.CFrame)
  6165. if ArmAnim=='None' then
  6166. SetWeld(wLSho,0,WalkAnim,WalkMax,Oa,Ob,Oa,v3(-WalkAdj*1.5,0,-10),1)
  6167. SetWeld(wLArm,0,WalkAnim,WalkMax,Oc,Od,Oc,v3(10+(WalkAnim>0 and WalkAdj or 0),0,10),1)
  6168. SetWeld(wRSho,0,WalkAnim,WalkMax,Oe,Of,Oe,v3(WalkAdj*1.5,0,10),1)
  6169. SetWeld(wRArm,0,WalkAnim,WalkMax,Og,Oh,Og,v3(10+(WalkAnim>0 and WalkAdj or 0),0,-10),1)
  6170. end
  6171. if LegAnim=='None' then
  6172. SetWeld(wLThi,0,WalkAnim,WalkMax,Oi,Oj,Oi,v3(15+WalkAdj,0,-5),1)
  6173. SetWeld(wLLeg,0,WalkAnim,WalkMax,Ok,Ol,Ok,v3(-15+(WalkAnim>0 and -WalkAdj or 0),0,5),1)
  6174. SetWeld(wRThi,0,WalkAnim,WalkMax,Om,On,Om,v3(15-WalkAdj,0,5),1)
  6175. SetWeld(wRLeg,0,WalkAnim,WalkMax,Oo,Op,Oo,v3(-15+(WalkAnim<0 and WalkAdj or 0),0,-5),1)
  6176. end
  6177.  
  6178. if Anim=='Follow' and Target and Target:findFirstChild'Torso' and not BG.maxTorque~=v3(1,1,1)/0 then
  6179. Hum:MoveTo(Target.Torso.CFrame*cn(2.5*Scale,0,5*Scale).p,Target.Torso)
  6180. end
  6181. if Grabbing and (not Grabbing.Part1 or not Grabbing.Part1.Parent or Grabbing.Part1.Parent:findFirstChild'Humanoid'==nil or Grabbing.Part1.Parent.Humanoid.Health<1) then
  6182. Grabbing:Remove() Grabbing=nil
  6183. end
  6184. end--hleat
  6185. --DoLoop Package
  6186. for i,v in pairs(LoopFunctions) do
  6187. v[2]=v[2]+1
  6188. v[3](v[2]/v[1])
  6189. if v[1]<=v[2] then LoopFunctions[i]=nil end
  6190. end
  6191. local ws=18
  6192. for i=1,#tWS do ws=ws*tWS[i] end
  6193. Hum.WalkSpeed=ws
  6194. if Hum.MaxHealth~=8000 then Hum.MaxHealth=8000 Hum.Health=8000 end
  6195. Hum.Health=Hum.Health+0.1
  6196. wait(0.03)
  6197. end
  6198. ChatConnection:disconnect()
  6199. game:service'Debris':AddItem(script,0.5)
  6200. script.Disabled=true
  6201.  
  6202. end)
Add Comment
Please, Sign In to add comment