Advertisement
yoyo74456

Part Animal, By HANdsum

Aug 31st, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.40 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6. --------------------------------------------------------
  7. --Script fully made by--
  8. -- _ __ _ --
  9. -- /\ /\/_\ /\ \ \__| |___ _ _ _ __ ___ --
  10. -- / /_/ //_\\ / \/ / _` / __| | | | '_ ` _ \ --
  11. --/ __ / _ \/ /\ / (_| \__ \ |_| | | | | | |--
  12. --\/ /_/\_/ \_/\_\ \/ \__,_|___/\__,_|_| |_| |_|--
  13.  
  14. Player = game:GetService("Players").LocalPlayer
  15. char = Player.Character
  16. Mouse = Player:GetMouse()
  17. PartyMode = Instance.new("BoolValue", char)
  18. char.Humanoid.HealthDisplayType = "AlwaysOff"
  19. char.Humanoid.DisplayDistanceType = "None"
  20. --------------------------------------------------------
  21. print("Commands")
  22. print("Tap E : Rapidly changes body color and sets body to neon.")
  23. print("Type \"O/Speed/Number\" : Will change the orbs Speed to the number that you wrote.")
  24. print("Type \"O/Mat/Material\" : Will change the orbs Material to the one that you wrote.")
  25. print("Type \"O/Tran/Number\" : Will change the orbs Transparency to the number that you wrote.")
  26. print("Type \"O/Ref/Number\" : Will change the orbs Reflectance to the number that you wrote.")
  27. print("Type \"O/Dis/Number\" : Will change the orbs Distance to the number that you wrote.")
  28. print("Type \"O/Col/Color\" : Will change the orbs Color to the color that you wrote.")
  29. print("Type \"O/Fol/FullUserName\" : Will orbit around the player you wrote.")
  30. print("Type \"O/Vol/Number\" : Will change current song Volume to the one that you wrote.")
  31. print("Type \"O/Play/SongID\" : Will play a song depending on the SongID you wrote.")
  32. print("Type \"O/LPlay/SongID\" : Will loop play a song depending on the SongID you wrote.")
  33. print("Type \"O/Stop\" : Will Stop the current playing song.")
  34. print("Defaults")
  35. Head = char.Head
  36. HC = Head.Color
  37. Torso = char.Torso
  38. TC = Torso.Color
  39. LArm = char:FindFirstChild("Left Arm")
  40. LAC = LArm.Color
  41. LLeg = char:FindFirstChild("Left Leg")
  42. LLC = LLeg.Color
  43. RArm = char:FindFirstChild("Right Arm")
  44. RAC = RArm.Color
  45. RLeg = char:FindFirstChild("Right Leg")
  46. RLC = RLeg.Color
  47. --------------------------------------------------------
  48. Player:ClearCharacterAppearance();
  49. A = Instance.new("Accessory", char);
  50. A.AttachmentPos = Vector3.new(0,2,0)
  51. H = Instance.new("Part");
  52. H.Parent = A;H.Name = "Handle";
  53. M = Instance.new("SpecialMesh");
  54. M.Parent = H;M.MeshId = "rbxassetid://1028713";M.TextureId = "rbxassetid://984833776";M.Scale = Vector3.new(1, 1.19, 1)
  55. AW = Instance.new("Weld");
  56. AW.Parent = H;AW.Name = "AccessoryWeld";AW.Part0 = H;AW.Part1 = char.Head;
  57. OS = Instance.new("Vector3Value");
  58. OS.Parent = H;OS.Name = "OriginalSize";OS.Value = Vector3.new(1.4,1,1.6);
  59. HA = Instance.new("Attachment");
  60. HA.Parent = H;HA.Name = "HatAttachment";
  61. --------------------------------------------------------
  62. BG = Instance.new("BillboardGui", char.Head)
  63. BG.MaxDistance = 80
  64. BG.Size = UDim2.new(4,0,1,0)
  65. BG.StudsOffset = Vector3.new(0,1.5,0)
  66. TB = Instance.new("TextBox")
  67. TB.Parent = BG
  68. TB.BackgroundTransparency = 1
  69. TB.Size = UDim2.new(1,0,1,0)
  70. TB.Font = "Cartoon"
  71. TB.Text = char.Name
  72. TB.TextScaled = true
  73. TB.TextStrokeTransparency = 0
  74. TB.TextWrapped = true
  75. TB.TextColor3 = Color3.new(43,255,255)
  76. --------------------------------------------------------
  77. Mouse.KeyDown:connect(function(key)
  78. if key:lower() == "w" or key:lower() == "a" or key:lower() == "s" or key:lower() == "d" then
  79. wait(0.01)
  80. Head.Material = "Neon"
  81. Head.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  82. Torso.Material = "Neon"
  83. Torso.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  84. LArm.Material = "Neon"
  85. LArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  86. RArm.Material = "Neon"
  87. RArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  88. LLeg.Material = "Neon"
  89. LLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  90. RLeg.Material = "Neon"
  91. RLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  92. end
  93.  
  94. if key:lower() == "e" and PartyMode.Value == false then
  95. PartyMode.Value = true
  96. TB.Text = "Party Mode"
  97. Head.Material = "Neon"
  98. Torso.Material = "Neon"
  99. RArm.Material = "Neon"
  100. LArm.Material = "Neon"
  101. LLeg.Material = "Neon"
  102. RLeg.Material = "Neon"
  103. repeat
  104. wait(0.2)
  105. Head.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  106. Torso.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  107. LArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  108. RArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  109. LLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  110. RLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  111. until
  112. PartyMode.Value == false
  113. end
  114.  
  115. if key:lower() == "e" and PartyMode.Value == true then
  116. PartyMode.Value = false
  117. wait(0.1)
  118. TB.TextColor3 = Color3.new(43,255,255)
  119. TB.Text = char.Name
  120. end
  121. end)
  122.  
  123. Mouse.KeyUp:connect(function(key)
  124. if PartyMode.Value == false then
  125. wait(0.5)
  126. Head.Color = HC;Torso.Color = TC;LArm.Color = LAC;RArm.Color = RAC;LLeg.Color = LLC;RLeg.Color = RLC
  127. Head.Material = "Plastic";Torso.Material = "Plastic";LArm.Material = "Plastic";RArm.Material = "Plastic";LLeg.Material = "Plastic";RLeg.Material = "Plastic"
  128. end
  129. end)
  130. --------------------------------------------------------
  131. Orb = Instance.new("Part")
  132. Orb.Name = "Orb"
  133. Orb.Parent = char
  134. Orb.Color = Color3.fromRGB(91, 93, 105)
  135. Orb.Material = "Glass"
  136. Orb.Reflectance = 1
  137. Orb.Transparency = 0.7
  138. Orb.CanCollide = false
  139. Orb.Shape = "Ball"
  140. Orb.Size = Vector3.new(1,1,1)
  141. Orb.Anchored = true
  142. --------------------------------------------------------
  143. OBG = Instance.new("BillboardGui", Orb)
  144. OBG.MaxDistance = 80
  145. OBG.Size = UDim2.new(4,0,1,0)
  146. OBG.StudsOffset = Vector3.new(0,1,0)
  147. OTB = Instance.new("TextBox")
  148. OTB.Parent = OBG
  149. OTB.BackgroundTransparency = 1
  150. OTB.Size = UDim2.new(1,0,1,0)
  151. OTB.Font = "Cartoon"
  152. OTB.Text = char.Name.."'s Orb"
  153. OTB.TextScaled = true
  154. OTB.TextStrokeTransparency = 0
  155. OTB.TextWrapped = true
  156. OTB.TextColor3 = Color3.new(43,255,255)
  157. --------------------------------------------------------
  158. Angle = Instance.new("IntValue", char)
  159. Angle.Name = "Angle"
  160. --------------------------------------------------------
  161. local i = 0
  162. local Speed = 0.09
  163. print("Speed : "..Speed)
  164. local Object = Orb
  165. local Distance = 6
  166. print("Distance : "..Distance)
  167. local Fol = Instance.new("StringValue", Orb)
  168. Fol.Value = Player.Name
  169. Music = Instance.new("Sound")
  170. --------------------------------------------------------
  171. Player.Chatted:Connect(function(message)
  172. if Player.Name == Player.Name then
  173. if message:sub(1, 6) == "O/Mat/" then
  174. Orb.Material = message:sub(7)
  175. end
  176.  
  177. if message:sub(1,8) == "O/Speed/" then
  178. Speed = message:sub(9)
  179. end
  180.  
  181. if message:sub(1, 6) == "O/Fol/" then
  182. local check = message:sub(7)
  183. if game.workspace:FindFirstChild(check) ~= nil then
  184. Fol.Value = message:sub(7)
  185. end
  186. end
  187.  
  188. if message:sub(1, 7) == "O/Tran/" then
  189. Orb.Transparency = message:sub(8)
  190. end
  191.  
  192. if message:sub(1, 6) == "O/Ref/" then
  193. Orb.Reflectance = message:sub(7)
  194. end
  195.  
  196. if message:sub(1, 6) == "O/Dis/" then
  197. Distance = message:sub(7)
  198. end
  199.  
  200. if message:sub(1, 6) == "O/Col/" then
  201. Orb.BrickColor = BrickColor.new(message:sub(7))
  202. end
  203.  
  204. if message:sub(1, 7) == "O/Play/" then
  205. Music.Parent = Orb
  206. Music.SoundId = "rbxassetid://"..message:sub(8)
  207. Music:Play()
  208. Music.Volume = 5
  209. Music.Looped = false
  210. end
  211.  
  212. if message:sub(1, 8) == "O/LPlay/" then
  213. Music.Parent = Orb
  214. Music.SoundId = "rbxassetid://"..message:sub(9)
  215. Music:Play()
  216. Music.Volume = 5
  217. Music.Looped = true
  218. end
  219.  
  220. if message:sub(1, 6) == "O/Vol/" then
  221. Music.Volume = message:sub(7)
  222. end
  223.  
  224. if message:sub(1, 7) == "O/Stop" then
  225. Music.SoundId = ""
  226. Music.Looped = false
  227. end
  228. end
  229. end)
  230. --------------------------------------------------------
  231. while true do
  232. wait()
  233. i = i + 1
  234. local Angle = 0
  235. if Fol.Value == nil then
  236. Fol.Value = Player.Name
  237. end
  238. Object.CFrame = game.Workspace:FindFirstChild(Fol.Value).HumanoidRootPart.CFrame - CFrame.fromEulerAnglesXYZ(Angle, i * Speed, 0) * Vector3.new(0,0,Distance)
  239. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement