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