View difference between Paste ID: UA2yvrf4 and D6wnPGx8
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")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 --https://github.com/Mokiros/roblox-FE-compatibility
5
6
7
8
wait(1)
9
10
-- Get LocalPlayer
11
local p = game.Players.LocalPlayer
12
13
-- Instance New Objects
14
local gui = Instance.new('ScreenGui',p.PlayerGui)
15
local frame = Instance.new('Frame',gui)
16
local open = Instance.new('TextButton',gui)
17
local bool = Instance.new('BoolValue',frame)
18
local button = Instance.new('TextButton',frame)
19
local name = Instance.new('TextLabel',frame)
20
local box = Instance.new('TextBox',frame)
21
local msg = Instance.new('StringValue',box)
22
local exit = Instance.new('TextButton',frame)
23
local spamon = Instance.new('TextButton',frame)
24
local spamoff = Instance.new('TextButton',frame)
25
local search = Instance.new('TextBox',frame)
26
local people = Instance.new('StringValue',frame)
27
28
-- Objects Name
29
gui.Name = "SpamGUI"
30
frame.Name = "SpawnFrame"
31
open.Name = "OpenButton"
32
bool.Name = "Bool"
33
button.Name = "Open/Close"
34
name.Name = "Title"
35
box.Name = "TextBox"
36
msg.Name = "Msg"
37
exit.Name = "ExitButton"
38
spamon.Name = "SpamON"
39
spamoff.Name = "SpamOFF"
40
search.Name = "SearchPeople"
41
people.Name = "Result"
42
43
-- Objects Position
44
frame.Position = UDim2.new(0.7,7,0,3)
45
open.Position = UDim2.new(0,-100,0.7,0)
46
button.Position = UDim2.new(0,170,0.7,13)
47
name.Position = UDim2.new(0,0,0,0)
48
box.Position = UDim2.new(0,0,0,45)
49
exit.Position = UDim2.new(0.8,30,0,0)
50
spamon.Position = UDim2.new(0,5,0.7,13)
51
spamoff.Position = UDim2.new(0,245,0.7,13)
52
search.Position = UDim2.new(0,0,0,200)
53
54
-- Object Size
55
frame.Size = UDim2.new(0,400,0,200)
56
open.Size = UDim2.new(0,100,0,40)
57
button.Size = UDim2.new(0,60,0,40)
58
name.Size = UDim2.new(0.8,25,0,40)
59
box.Size = UDim2.new(1,0,0,100)
60
exit.Size = UDim2.new(0,50,0,43)
61
spamon.Size = UDim2.new(0,150,0,40)
62
spamoff.Size = UDim2.new(0,150,0,40)
63
search.Size = UDim2.new(0,400,0,50)
64
65
-- Dragggable Frame
66
frame.Active = true
67
frame.Draggable = true
68
69
-- Objects Background Color
70
frame.BackgroundColor3 = Color3.new(0,0,0)
71
open.BackgroundColor3 = Color3.new(255, 255, 0)
72
button.BackgroundColor3 = Color3.new(255, 255, 255)
73
name.BackgroundColor3 = Color3.new(255, 255, 255)
74
box.BackgroundColor3 = Color3.new(255, 255, 255)
75
exit.BackgroundColor3 = Color3.new(255, 0, 0)
76
spamon.BackgroundColor3 = Color3.new(255, 0, 0)
77
spamoff.BackgroundColor3 = Color3.new(255, 0, 0)
78
search.BackgroundColor3 = Color3.new(255,255,255)
79
80
-- Object Background Transparency
81
frame.BackgroundTransparency = 0.5
82
box.BackgroundTransparency = 0.5
83
button.BackgroundTransparency = 0.6
84
name.BackgroundTransparency = 1
85
search.BackgroundTransparency = 0.6
86
87
-- Visible
88
open.Visible = false
89
search.Visible = false
90
91
-- Text Size/Scaled enabled
92
open.TextScaled = true
93
exit.TextScaled = true
94
spamon.TextScaled = true
95
spamoff.TextScaled = true
96
box.TextScaled = true
97
button.TextScaled = true
98
name.TextScaled = true
99
search.TextScaled = true
100
101
-- Box Line
102
box.ClearTextOnFocus = true
103
box.MultiLine = true
104-
spamoff.Text = "Turn Off"
104+
105-
spamon.Text = "Turn On"
105+
106-
box.Text = "Message Here ....."
106+
107
108-
name.Text = "Unique's Spam GUI"
108+
109
open.Text = "Open"
110
exit.Text = "Exit"
111
spamoff.Text = "STOP"
112
spamon.Text = "RUN"
113
box.Text = "LOLOLOLOLOLOLOL SKRUB GET FUCKED NIGGER"
114
button.Text = "Close"
115
name.Text = "Unique's Spam GUI for void sb"
116
search.Text = "Search people"
117
118
-- Value
119
bool.Value = false
120-
box.Text = "Success !"
120+
121
people.Value = ""
122
123-
box.Text = "Message Here ....."
123+
124
spamon.MouseButton1Down:connect(function()
125
bool.Value = true
126
msg.Value = box.Text
127
box.Text = "LOLOLOLOLOLOLOL SKRUB GET FUCKED NIGGER"
128
search.Text = ""
129
wait(1)
130
box.Text = "LOLOLOLOLOLOLOL SKRUB GET FUCKED NIGGER "
131
end)
132
133
-- Spam Off
134
spamoff.MouseButton1Down:connect(function()
135
bool.Value = false
136
end)
137
138
-- Exit Function
139
exit.MouseButton1Down:connect(function()
140
frame:TweenPosition(UDim2.new(1,0,0,3),"Out","Quad",1,true)
141
wait(1)
142
frame.Visible = false
143
wait(.5)
144
open.Visible = true
145
open:TweenPosition(UDim2.new(0,5,0.7,0),"Out","Bounce",1,true)
146
end)
147
148
-- Open Function
149
open.MouseButton1Down:connect(function()
150
open:TweenPosition(UDim2.new(0,-100,0.7,0),"Out","Quad",1,true)
151
wait(1)
152
open.Visible = false
153
wait(.5)
154
frame.Visible = true
155
frame:TweenPosition(UDim2.new(0.7,7,0,3),"Out","Bounce",1,true)
156
end)
157
158
-- Search People Box
159
button.MouseButton1Down:connect(function()
160
if search.Visible == false then
161
button.Text = "Open"
162
search.Visible = true
163
else
164
button.Text = "Close"
165
search.Visible = false 
166
end
167
end)
168
169
-- Spam Function
170
while true do
171
wait(.1)
172
 if bool.Value == true then
173
local ppl = game.Players:FindFirstChild(people.Value)
174
if ppl then
175
game:GetService('Chat'):Chat(ppl.Character, msg.Value)
176
   elseif not ppl then
177
for i,v in pairs(game.Players:GetChildren()) do
178
game:GetService('Chat'):Chat(v.Character, msg.Value)
179
end
180
end
181
end
182
end