Advertisement
Zach_script_stealer2

Sign FE

Aug 22nd, 2019
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. print(" this script was (NOT) edited by An ignorant / zach ")
  3. warn(" credits goes to Dark eccentric and Mr steal yo bork ")
  4. warn(" im too lazy to edit so here i only convert im tired")
  5. warn(" you can just clone it and edit the color yourself")
  6. warn(" im tired bruh ")
  7. local Player,game,owner = owner,game
  8. local RealPlayer = Player
  9. do
  10. print("FE Compatibility code by Mokiros")
  11. print("This EDIT was made by Zach the script stealer / aka zach so please stop pretending that you made it")
  12. local rp = RealPlayer
  13. script.Parent = rp.Character
  14.  
  15. --RemoteEvent for communicating
  16. local Event = Instance.new("RemoteEvent")
  17. Event.Name = "UserInput_Event"
  18.  
  19. --Fake event to make stuff like Mouse.KeyDown work
  20. local function fakeEvent()
  21. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  22. t.connect = t.Connect
  23. return t
  24. end
  25.  
  26. --Creating fake input objects with fake variables
  27. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  28. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  29. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  30. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  31. end}
  32. --Merged 2 functions into one by checking amount of arguments
  33. CAS.UnbindAction = CAS.BindAction
  34.  
  35. --This function will trigger the events that have been :Connect()'ed
  36. local function te(self,ev,...)
  37. local t = m[ev]
  38. if t and t._fakeEvent then
  39. for _,f in pairs(t.Functions) do
  40. f(...)
  41. end
  42. end
  43. end
  44. m.TrigEvent = te
  45. UIS.TrigEvent = te
  46.  
  47. Event.OnServerEvent:Connect(function(plr,io)
  48. if plr~=rp then return end
  49. m.Target = io.Target
  50. m.Hit = io.Hit
  51. if not io.isMouse then
  52. local b = io.UserInputState == Enum.UserInputState.Begin
  53. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  54. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  55. end
  56. for _,t in pairs(CAS.Actions) do
  57. for _,k in pairs(t.Keys) do
  58. if k==io.KeyCode then
  59. t.Function(t.Name,io.UserInputState,io)
  60. end
  61. end
  62. end
  63. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  64. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  65. end
  66. end)
  67. Event.Parent = NLS([==[
  68. local Player = game:GetService("Players").LocalPlayer
  69. local Event = script:WaitForChild("UserInput_Event")
  70.  
  71. local Mouse = Player:GetMouse()
  72. local UIS = game:GetService("UserInputService")
  73. local input = function(io,a)
  74. if a then return end
  75. --Since InputObject is a client-side instance, we create and pass table instead
  76. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  77. end
  78. UIS.InputBegan:Connect(input)
  79. UIS.InputEnded:Connect(input)
  80.  
  81. local h,t
  82. --Give the server mouse data 30 times every second, but only if the values changed
  83. --If player is not moving their mouse, client won't fire events
  84. while wait(1/30) do
  85. if h~=Mouse.Hit or t~=Mouse.Target then
  86. h,t=Mouse.Hit,Mouse.Target
  87. Event:FireServer({isMouse=true,Target=t,Hit=h})
  88. end
  89. end]==],Player.Character)
  90.  
  91. ----Sandboxed game object that allows the usage of client-side methods and services
  92. --Real game object
  93. local _rg = game
  94.  
  95. --Metatable for fake service
  96. local fsmt = {
  97. __index = function(self,k)
  98. local s = rawget(self,"_RealService")
  99. if s then return s[k] end
  100. end,
  101. __newindex = function(self,k,v)
  102. local s = rawget(self,"_RealService")
  103. if s then s[k]=v end
  104. end,
  105. __call = function(self,...)
  106. local s = rawget(self,"_RealService")
  107. if s then return s(...) end
  108. end
  109. }
  110. local function FakeService(t,RealService)
  111. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  112. return setmetatable(t,fsmt)
  113. end
  114.  
  115. --Fake game object
  116. local g = {
  117. GetService = function(self,s)
  118. return self[s]
  119. end,
  120. Players = FakeService({
  121. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  122. },"Players"),
  123. UserInputService = FakeService(UIS,"UserInputService"),
  124. ContextActionService = FakeService(CAS,"ContextActionService"),
  125. }
  126. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  127. g.service = g.GetService
  128.  
  129. g.RunService = FakeService({
  130. RenderStepped = _rg:GetService("RunService").Heartbeat,
  131. BindToRenderStep = function(self,name,_,fun)
  132.  
  133. end,
  134. UnbindFromRenderStep = function(self,name)
  135. self._btrs[name]:Disconnect()
  136. end,
  137. },"RunService")
  138.  
  139. setmetatable(g,{
  140. __index=function(self,s)
  141. return _rg:GetService(s) or typeof(_rg[s])=="function"
  142. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  143. end,
  144. __newindex = fsmt.__newindex,
  145. __call = fsmt.__call
  146. })
  147. --Changing owner to fake player object to support owner:GetMouse()
  148. game,owner = g,g.Players.LocalPlayer
  149. end
  150.  
  151.  
  152.  
  153. p = game.Players.LocalPlayer
  154. t = Instance.new("Tool")
  155. t.Parent = p.Backpack
  156. t.Name = "Sign lololo"
  157. local handlelol = Instance.new("Part")
  158. handlelol.Name = "Handle"
  159. handlelol.Parent = t
  160. handlelol.formFactor = "Plate"
  161. handlelol.BrickColor = BrickColor.new("Brown")
  162. handlelol.Size = Vector3.new(1, 4.5, .5)
  163. handlelol.TopSurface = "Smooth"
  164. handlelol.BottomSurface = "Smooth"
  165. handlelol.Reflectance = 0
  166. handlelol.Material = "Wood"
  167. local sign = Instance.new("Part")
  168. sign.Name = "Part"
  169. sign.Parent = t
  170. sign.formFactor = "Plate"
  171. sign.BrickColor = BrickColor.new("Bright bluish green")
  172. sign.Size = Vector3.new(5, 4, 1)
  173. sign.TopSurface = "Smooth"
  174. sign.BottomSurface = "Smooth"
  175. sign.Reflectance = 0
  176.  
  177. mesh123 = Instance.new("BlockMesh")
  178. mesh123.Parent = sign
  179. mesh123.Scale = Vector3.new(1.1, 1.1, 0.8)
  180.  
  181. w2 = Instance.new("Weld")
  182. w2.Parent = handlelol
  183. w2.Part0 = sign
  184. w2.Part1 = handlelol
  185. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2.5, 0)
  186. -----------------------------------------------------------------------
  187. local SurfaceGui = Instance.new("SurfaceGui")
  188. local TextBox = Instance.new("TextBox")
  189. local ScreenGui = Instance.new("ScreenGui")
  190. local TextLabel = Instance.new("TextBox")
  191. ScreenGui.Parent = p.PlayerGui
  192. TextBox.Parent = ScreenGui
  193. TextBox.BackgroundColor3 = Color3.new(0.756863, 0.705882, 1)
  194. TextBox.Position = UDim2.new(0, 74, 0, 374)
  195. TextBox.Size = UDim2.new(0, 176, 0, 50)
  196. TextBox.Font = Enum.Font.Highway
  197. TextBox.FontSize = Enum.FontSize.Size28
  198. TextBox.Text = "Type text you want here"
  199. TextBox.TextSize = 10
  200. TextBox.TextWrapped = true
  201. TextBox.Visible = false
  202. SurfaceGui.Parent = sign
  203. SurfaceGui.Face = Enum.NormalId.Front
  204. TextLabel.Parent = SurfaceGui
  205. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  206. TextLabel.BackgroundTransparency = 1
  207. TextLabel.Size = UDim2.new(0, 800, 0, 600)
  208. TextLabel.Font = Enum.Font.SourceSans
  209. TextLabel.FontSize = Enum.FontSize.Size96
  210. TextLabel.Text = "same"
  211. TextLabel.TextColor3 = Color3.new(0.956863, 0.345098, 0.0588235)
  212. TextLabel.TextSize = 100
  213. TextLabel.TextWrapped = true
  214. t.Equipped:connect(function()
  215. TextBox.Visible = true
  216. end)
  217.  
  218. t.Unequipped:connect(function()
  219. TextBox.Visible = false
  220. end)
  221. wait(1)
  222. TextBox.Changed:connect(function()
  223. TextLabel.Text = TextBox.Text
  224. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement