Advertisement
yoyo74456

Untitled

Aug 27th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.10 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. local USERNAME = "HANdsum"
  7. --------------------------------------------------------
  8. Player = game:GetService("Players").LocalPlayer
  9. char = Player.Character
  10. Mouse = Player:GetMouse()
  11. PartyMode = Instance.new("BoolValue", char)
  12. char.Humanoid.HealthDisplayType = "AlwaysOff"
  13. char.Humanoid.DisplayDistanceType = "None"
  14. --------------------------------------------------------
  15. Head = char.Head
  16. HC = Head.Color
  17. Torso = char.Torso
  18. TC = Torso.Color
  19. LArm = char:FindFirstChild("Left Arm")
  20. LAC = LArm.Color
  21. LLeg = char:FindFirstChild("Left Leg")
  22. LLC = LLeg.Color
  23. RArm = char:FindFirstChild("Right Arm")
  24. RAC = RArm.Color
  25. RLeg = char:FindFirstChild("Right Leg")
  26. RLC = RLeg.Color
  27. --------------------------------------------------------
  28. game.Workspace:WaitForChild(USERNAME)
  29. Player:ClearCharacterAppearance();
  30. A = Instance.new("Accessory", char);
  31. A.AttachmentPos = Vector3.new(0,2,0)
  32. H = Instance.new("Part");
  33. H.Parent = A;H.Name = "Handle";
  34. M = Instance.new("SpecialMesh");
  35. M.Parent = H;M.MeshId = "rbxassetid://1028713";M.TextureId = "rbxassetid://984833776";M.Scale = Vector3.new(1, 1.19, 1)
  36. AW = Instance.new("Weld");
  37. AW.Parent = H;AW.Name = "AccessoryWeld";AW.Part0 = H;AW.Part1 = char.Head;
  38. OS = Instance.new("Vector3Value");
  39. OS.Parent = H;OS.Name = "OriginalSize";OS.Value = Vector3.new(1.4,1,1.6);
  40. HA = Instance.new("Attachment");
  41. HA.Parent = H;HA.Name = "HatAttachment";
  42. --------------------------------------------------------
  43. BG = Instance.new("BillboardGui", char.Head)
  44. BG.MaxDistance = 80
  45. BG.Size = UDim2.new(4,0,1,0)
  46. BG.StudsOffset = Vector3.new(0,1.5,0)
  47. TB = Instance.new("TextBox")
  48. TB.Parent = BG
  49. TB.BackgroundTransparency = 1
  50. TB.Size = UDim2.new(1,0,1,0)
  51. TB.Font = "Cartoon"
  52. TB.Text = char.Name
  53. TB.TextScaled = true
  54. TB.TextStrokeTransparency = 0
  55. TB.TextWrapped = true
  56. TB.TextColor3 = Color3.new(43,255,255)
  57. --------------------------------------------------------
  58. Mouse.KeyDown:connect(function(key)
  59. print("Key:", key, " Code:", string.byte(key))
  60. if key:lower() == "w" or key:lower() == "a" or key:lower() == "s" or key:lower() == "d" then
  61. wait(0.01)
  62. Head.Material = "Neon"
  63. Head.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  64. Torso.Material = "Neon"
  65. Torso.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  66. LArm.Material = "Neon"
  67. LArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  68. RArm.Material = "Neon"
  69. RArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  70. LLeg.Material = "Neon"
  71. LLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  72. RLeg.Material = "Neon"
  73. RLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  74. end
  75.  
  76. if key:lower() == "leftshift" then --Left Shift
  77. print("ayy")
  78. end
  79.  
  80. if key:lower() == "e" and PartyMode.Value == false then
  81. print("Party Mode Activated.")
  82. PartyMode.Value = true
  83. TB.Text = "Party Mode"
  84. Head.Material = "Neon"
  85. Torso.Material = "Neon"
  86. RArm.Material = "Neon"
  87. LArm.Material = "Neon"
  88. LLeg.Material = "Neon"
  89. RLeg.Material = "Neon"
  90. repeat
  91. wait(0.2)
  92. Head.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  93. Torso.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  94. LArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  95. RArm.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  96. LLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  97. RLeg.Color = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  98. until
  99. PartyMode.Value == false
  100. end
  101.  
  102. if key:lower() == "z" then
  103. LArm.CFrame = CFrame.Angles(0, 0, 0)
  104. end
  105.  
  106. if key:lower() == "e" and PartyMode.Value == true then
  107. print("Party Mode Disabled")
  108. PartyMode.Value = false
  109. wait(0.1)
  110. TB.TextColor3 = Color3.new(43,255,255)
  111. TB.Text = char.Name
  112. end
  113. end)
  114.  
  115. Mouse.KeyUp:connect(function(key)
  116. if PartyMode.Value == false then
  117. wait(0.5)
  118. Head.Color = HC;Torso.Color = TC;LArm.Color = LAC;RArm.Color = RAC;LLeg.Color = LLC;RLeg.Color = RLC
  119. Head.Material = "Plastic";Torso.Material = "Plastic";LArm.Material = "Plastic";RArm.Material = "Plastic";LLeg.Material = "Plastic";RLeg.Material = "Plastic"
  120. end
  121. end)
  122. --------------------------------------------------------
  123. Orb = Instance.new("Part")
  124. Orb.Name = "Orb"
  125. Orb.Parent = char
  126. Orb.Color = Color3.fromRGB(91, 93, 105)
  127. Orb.Material = "Glass"
  128. Orb.Reflectance = 1
  129. Orb.Transparency = 0.7
  130. Orb.CanCollide = false
  131. Orb.Shape = "Ball"
  132. Orb.Size = Vector3.new(1,1,1)
  133. Orb.Anchored = true
  134. --------------------------------------------------------
  135. OBG = Instance.new("BillboardGui", Orb)
  136. OBG.MaxDistance = 80
  137. OBG.Size = UDim2.new(4,0,1,0)
  138. OBG.StudsOffset = Vector3.new(0,1,0)
  139. OTB = Instance.new("TextBox")
  140. OTB.Parent = OBG
  141. OTB.BackgroundTransparency = 1
  142. OTB.Size = UDim2.new(1,0,1,0)
  143. OTB.Font = "Cartoon"
  144. OTB.Text = char.Name.."'s Orb"
  145. OTB.TextScaled = true
  146. OTB.TextStrokeTransparency = 0
  147. OTB.TextWrapped = true
  148. OTB.TextColor3 = Color3.new(43,255,255)
  149. --------------------------------------------------------
  150. Angle = Instance.new("IntValue", char)
  151. Angle.Name = "Angle"
  152. --------------------------------------------------------
  153. local i = 0
  154. local Speed = 0.09
  155. local Object = Orb
  156. local Distance = 6
  157. local Fol = Instance.new("StringValue", Orb)
  158. Fol.Value = "HANdsum"
  159. Music = Instance.new("Sound")
  160. --------------------------------------------------------
  161. Player.Chatted:Connect(function(message)
  162. if Player.Name == Player.Name then
  163. if message:sub(1, 6) == "O/Mat/" then
  164. Orb.Material = message:sub(7)
  165. end
  166.  
  167. if message:sub(1,8) == "O/Speed/" then
  168. Speed = message:sub(9)
  169. end
  170.  
  171. if message:sub(1, 6) == "O/Fol/" then
  172. local check = message:sub(7)
  173. if game.workspace:FindFirstChild(check) ~= nil then
  174. Fol.Value = message:sub(7)
  175. end
  176. end
  177.  
  178. if message:sub(1, 7) == "O/Tran/" then
  179. Orb.Transparency = message:sub(8)
  180. end
  181.  
  182. if message:sub(1, 6) == "O/Ref/" then
  183. Orb.Reflectance = message:sub(7)
  184. end
  185.  
  186. if message:sub(1, 6) == "O/Dis/" then
  187. Distance = message:sub(7)
  188. end
  189.  
  190. if message:sub(1, 6) == "O/Col/" then
  191. Orb.BrickColor = BrickColor.new(message:sub(7))
  192. end
  193.  
  194. if message:sub(1, 6) == "O/Vol/" then
  195. Music.Volume = message:sub(7)
  196. end
  197.  
  198. if message:sub(1, 7) == "O/Play/" then
  199. Music.Parent = Orb
  200. Music.SoundId = "rbxassetid://"..message:sub(8)
  201. Music:Play()
  202. Music.Volume = 5
  203. print("Music Playing")
  204. print(Music.SoundId)
  205. end
  206.  
  207. if message:sub(1, 7) == "O/Stop" then
  208. Music.SoundId = ""
  209. end
  210. end
  211. end)
  212. --------------------------------------------------------
  213. while true do
  214. wait()
  215. i = i + 1
  216. local Angle = 0
  217. if Fol.Value == nil then
  218. Fol.Value = "HANdsum"
  219. end
  220. Object.CFrame = game.Workspace:FindFirstChild(Fol.Value).HumanoidRootPart.CFrame - CFrame.fromEulerAnglesXYZ(Angle, i * Speed, 0) * Vector3.new(0,0,Distance)
  221. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement