Advertisement
yoyo74456

Item Identifier

Aug 28th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.02 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. Player = game:GetService("Players").LocalPlayer
  8. plr = game.workspace:FindFirstChild("HANdsum")
  9. -------------------------------------------------
  10. Bool = Instance.new("BoolValue", plr)
  11. -------------------------------------------------
  12. LeftArmAccessory = Instance.new("Accessory", plr)
  13. LeftArmAccessory.Name = "LeftArmAccessory"
  14. LeftArmBand = Instance.new("Part", plr:WaitForChild("LeftArmAccessory"))
  15. LeftArmBand.Name = "Handle"
  16. LeftArmBandWeld = Instance.new("Weld", plr:WaitForChild("LeftArmAccessory").Handle)
  17. LeftArmBand.Color = Color3.fromRGB(143, 76, 42)
  18. LeftArmBand.Material = "Neon"
  19. LeftArmBand.Reflectance = 1
  20. LeftArmBand.Transparency = 0.3
  21. LeftArmBand.Position = Vector3.new(-10.285, 2.65, -19.584)
  22. LeftArmBand.Size = Vector3.new(1.1, 0.3, 1.1)
  23. LeftArmBandWeld.Part0 = LeftArmBand
  24. LeftArmBandWeld.Part1 = plr:FindFirstChild("Left Arm")
  25. -------------------------------------------------
  26. RightArmAccessory = Instance.new("Accessory", plr)
  27. RightArmAccessory.Name = "RightArmAccessory"
  28. RightArmBand = Instance.new("Part", plr:WaitForChild("RightArmAccessory"))
  29. RightArmBand.Name = "Handle"
  30. RightArmBandWeld = Instance.new("Weld", plr:WaitForChild("RightArmAccessory").Handle)
  31. RightArmBand.Color = Color3.fromRGB(143, 76, 42)
  32. RightArmBand.Material = "Neon"
  33. RightArmBand.Reflectance = 1
  34. RightArmBand.Transparency = 0.3
  35. RightArmBand.Position = Vector3.new(-7.285, 2.65, -19.584)
  36. RightArmBand.Size = Vector3.new(1.1, 0.3, 1.1)
  37. RightArmBandWeld.Part0 = RightArmBand
  38. RightArmBandWeld.Part1 = plr:FindFirstChild("Right Arm")
  39. -------------------------------------------------
  40. RightLegAccessory = Instance.new("Accessory", plr)
  41. RightLegAccessory.Name = "RightLegAccessory"
  42. RightLegBand = Instance.new("Part", plr:WaitForChild("RightLegAccessory"))
  43. RightLegBand.Name = "Handle"
  44. RightLegBandWeld = Instance.new("Weld", plr:WaitForChild("RightLegAccessory").Handle)
  45. RightLegBand.Color = Color3.fromRGB(143, 76, 42)
  46. RightLegBand.Material = "Neon"
  47. RightLegBand.Reflectance = 1
  48. RightLegBand.Transparency = 0.3
  49. RightLegBand.Position = Vector3.new(-8.26, 0.55, -19.584)
  50. RightLegBand.Size = Vector3.new(1.05, 0.3, 1.1)
  51. RightLegBandWeld.Part0 = RightLegBand
  52. RightLegBandWeld.Part1 = plr:FindFirstChild("Right Leg")
  53. -------------------------------------------------
  54. LeftLegAccessory = Instance.new("Accessory", plr)
  55. LeftLegAccessory.Name = "LeftLegAccessory"
  56. LeftLegBand = Instance.new("Part", plr:WaitForChild("LeftLegAccessory"))
  57. LeftLegBand.Name = "Handle"
  58. LeftLegBandWeld = Instance.new("Weld", plr:WaitForChild("LeftLegAccessory").Handle)
  59. LeftLegBand.Color = Color3.fromRGB(143, 76, 42)
  60. LeftLegBand.Material = "Neon"
  61. LeftLegBand.Reflectance = 1
  62. LeftLegBand.Transparency = 0.3
  63. LeftLegBand.Position = Vector3.new(-9.31, 0.55, -19.584)
  64. LeftLegBand.Size = Vector3.new(1.05, 0.3, 1.1)
  65. LeftLegBandWeld.Part0 = LeftLegBand
  66. LeftLegBandWeld.Part1 = plr:FindFirstChild("Left Leg")
  67. -------------------------------------------------
  68. BillBoardGui = Instance.new("BillboardGui", plr.Head)
  69. BillBoardGui.MaxDistance = 80
  70. BillBoardGui.Size = UDim2.new(6, 0, 1.5, 0)
  71. BillBoardGui.StudsOffset = Vector3.new(0, 2, 0)
  72. --=============================================--
  73. TextBox = Instance.new("TextBox", plr.Head.BillboardGui)
  74. TextBox.BackgroundTransparency = 1
  75. TextBox.Size = UDim2.new(1, 0, 1, 0)
  76. TextBox.Font = "Cartoon"
  77. TextBox.Text = ""
  78. TextBox.TextScaled = true
  79. TextBox.TextWrapped = true
  80. TextBox.TextColor3 = Color3.fromRGB(19, 156, 168)
  81. -------------------------------------------------
  82. Player.Chatted:connect(function(msg)
  83. TextBox.Text = msg
  84. end)
  85. -------------------------------------------------
  86. local Mouse = Player:GetMouse()
  87.  
  88. Mouse.KeyDown:connect(function(key)
  89. if key:lower() == "e" then
  90. plr.Torso.CFrame = CFrame.new(Mouse.Hit.Position + Vector3.new(0, 3, 0))
  91. end
  92.  
  93. if key:lower() == "q" then
  94.  
  95. end
  96. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement