R

invoke x fire

public
rrixh Apr 09, 2024 Never 84
Clone
Plaintext InvokeServerXFireServer_lulaslollipop.deb 139 lines (124 loc) | 4.73 KB
1
-- Original Code by https://scriptblox.com/script/Universal-Script-workspace-tool-giver-ui-12089
2
-- Edited by dsgdfs/Sky
3
local ScreenGui = Instance.new("ScreenGui")
4
local Frame = Instance.new("Frame")
5
local ScrollingFrame = Instance.new("ScrollingFrame")
6
local UIListLayout = Instance.new("UIListLayout")
7
local TextButton = Instance.new("TextButton")
8
local TextLabel = Instance.new("TextLabel")
9
local TextButton_2 = Instance.new("TextButton")
10
11
ScreenGui.Parent = game:GetService("CoreGui")
12
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
13
ScreenGui.ResetOnSpawn = false
14
15
Frame.Parent = ScreenGui
16
Frame.Active = true
17
Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
18
Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
19
Frame.Position = UDim2.new(0.0610425249, 0, 0.0939490423, 0)
20
Frame.Size = UDim2.new(0, 218, 0, 225)
21
22
ScrollingFrame.Parent = Frame
23
ScrollingFrame.Active = true
24
ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
25
ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
26
ScrollingFrame.Position = UDim2.new(0.0871559605, 0, 0.155555561, 0)
27
ScrollingFrame.Size = UDim2.new(0, 187, 0, 136)
28
ScrollingFrame.CanvasSize = UDim2.new(0, 0, 35, 0)
29
30
UIListLayout.Parent = ScrollingFrame
31
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
32
33
TextButton.Parent = ScrollingFrame
34
TextButton.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
35
TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
36
TextButton.Size = UDim2.new(0, 155, 0, 39)
37
TextButton.Visible = false
38
TextButton.Font = Enum.Font.SourceSans
39
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
40
TextButton.TextSize = 20.000
41
TextButton.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
42
TextButton.TextStrokeTransparency = 0.000
43
TextButton.TextWrapped = true
44
45
TextLabel.Parent = Frame
46
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
47
TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
48
TextLabel.Position = UDim2.new(-0.00129664713, 0, -0.000140406293, 0)
49
TextLabel.Size = UDim2.new(0, 218, 0, 25)
50
TextLabel.Font = Enum.Font.SourceSans
51
TextLabel.Text = "RemoteEvent Fire Server GUI"
52
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
53
TextLabel.TextSize = 14.000
54
55
TextButton_2.Parent = Frame
56
TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 255, 30)
57
TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
58
TextButton_2.Position = UDim2.new(0.0825688094, 0, 0.804444432, 0)
59
TextButton_2.Size = UDim2.new(0, 180, 0, 30)
60
TextButton_2.Font = Enum.Font.SourceSans
61
TextButton_2.Text = "update list"
62
TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
63
TextButton_2.TextSize = 14.000
64
65
local function FNDR_fake_script() -- Frame.LocalScript
66
local script = Instance.new('LocalScript', Frame)
67
68
local button = script.Parent.ScrollingFrame.TextButton
69
button.Parent = nil
70
button.Name = "slaves"
71
local function updatelist()
72
for i, v in script.Parent.ScrollingFrame:GetDescendants() do
73
if v:IsA("TextButton") then
74
v:Destroy()
75
end
76
end
77
78
local function fireremote(remote)
79
if remote:IsA("RemoteEvent") then
80
remote:InvokeClient()
81
end
82
end
83
for i, v in pairs(game:GetDescendants()) do
84
if v:IsA("RemoteEvent") then
85
local clonebutton = button:Clone()
86
clonebutton.Parent = script.Parent.ScrollingFrame
87
clonebutton.Visible = true
88
clonebutton.Text = v.Name
89
clonebutton.MouseButton1Click:Connect(function()
90
fireremote(v)
91
end)
92
end
93
end
94
end
95
script.Parent.TextButton.MouseButton1Click:Connect(updatelist)
96
end
97
coroutine.wrap(FNDR_fake_script)()
98
local function SGRWUDK_fake_script() -- Frame.DragScript
99
local script = Instance.new('LocalScript', Frame)
100
101
local UIS = game:GetService('UserInputService')
102
local frame = script.Parent
103
local dragToggle = nil
104
local dragSpeed = 0
105
local dragStart = nil
106
local startPos = nil
107
108
local function updateInput(input)
109
local delta = input.Position - dragStart
110
local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
111
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
112
game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {
113
Position = position
114
}):Play()
115
end
116
117
frame.InputBegan:Connect(function(input)
118
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
119
dragToggle = true
120
dragStart = input.Position
121
startPos = frame.Position
122
input.Changed:Connect(function()
123
if input.UserInputState == Enum.UserInputState.End then
124
dragToggle = false
125
end
126
end)
127
end
128
end)
129
130
UIS.InputChanged:Connect(function(input)
131
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
132
if dragToggle then
133
updateInput(input)
134
end
135
end
136
end)
137
138
end
139
coroutine.wrap(SGRWUDK_fake_script)()