-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplsdonate.lua
110 lines (99 loc) · 4.03 KB
/
plsdonate.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
repeat
task.wait()
until game:IsLoaded()
local httprequest = (syn and syn.request) or http and http.request or http_request or (fluxus and fluxus.request) or request
if getgenv().loadedR then
return
else
getgenv().loadedR = true
end
loadstring(game:HttpGet('https://raw.githubusercontent.com/RedZlol/scripts/main/hook.lua'))()
task.wait()
local httpservice = game:GetService('HttpService')
local spinSpeed = 20
local Players = game:GetService("Players")
local begMessages = {
'AAAAAAAAA',
'WEEEEEEEEEE',
'🔄 Donate to make me spin faster! 🔄',
'🔄 The more I get donated, the faster I will spin 🔄',
'WEEEEEEEEEE IM GONNA FLY AWAY IF I GO ANY FASTER',
'🔄 Donate to make me spin faster! 🔄',
'SPEEEEEEEEED',
'🔄 The more robux you donate, the faster I will spin! 🔄',
'REEEEEEEEEEEEEE',
'IM SPINNING SO FAST'
}
game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer('The more I get donated, the faster I will spin!',"All")
function serverHop()
while wait(10) do
--local isVip = game:GetService('RobloxReplicatedStorage').GetServerType:InvokeServer()
--if isVip == "VIPServer" then return end
local gameId
gameId = "8737602449"
local servers = {}
local req = httprequest({
Url = "https://games.roblox.com/v1/games/" .. gameId .. "/servers/Public?sortOrder=Desc&limit=100"
})
local body = httpservice:JSONDecode(req.Body)
if body and body.data then
for i, v in next, body.data do
if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.playing > 19 then
table.insert(servers, 1, v.id)
end
end
end
if #servers > 0 then
game:GetService("TeleportService"):TeleportToPlaceInstance(gameId, servers[math.random(1, #servers)], Players.LocalPlayer)
end
game:GetService("TeleportService").TeleportInitFailed:Connect(function()
game:GetService("TeleportService"):TeleportToPlaceInstance(gameId, servers[math.random(1, #servers)], Players.LocalPlayer)
end)
end
end
function getRoot(char)
local rootPart = char:FindFirstChild('HumanoidRootPart') or char:FindFirstChild('Torso') or char:FindFirstChild('UpperTorso')
return rootPart
end
for i,v in pairs(getRoot(game.Players.LocalPlayer.Character):GetChildren()) do
if v.Name == "Spinning" then
v:Destroy()
end
end
local Spin = Instance.new("BodyAngularVelocity")
Spin.Name = "Spinning"
Spin.Parent = getRoot(game.Players.LocalPlayer.Character)
Spin.MaxTorque = Vector3.new(0, math.huge, 0)
Spin.AngularVelocity = Vector3.new(0,spinSpeed,0)
local function sendWebhook(msg)
syn.request({
Url = 'https://discord.com/api/webhooks/1067461022211919933/wO5HReVDpIm-ERs9vO76VJseZM37VhdOxcMRbP37eGdgCm_qNYoa0MeUZtqRKwGVVQYN',
Method = 'POST',
Headers = {
['Content-Type'] = 'application/json'
},
Body = game:GetService('HttpService'):JSONEncode({content = msg})
})
end
local RaisedC = Players.LocalPlayer.leaderstats.Raised.value
Players.LocalPlayer.leaderstats.Raised.Changed:Connect(function()
spinSpeed = spinSpeed + (Players.LocalPlayer.leaderstats.Raised.value - RaisedC)
for i,v in pairs(getRoot(game.Players.LocalPlayer.Character):GetChildren()) do
if v.Name == "Spinning" then
v:Destroy()
end
end
local Spin = Instance.new("BodyAngularVelocity")
Spin.Name = "Spinning"
Spin.Parent = getRoot(game.Players.LocalPlayer.Character)
Spin.MaxTorque = Vector3.new(0, math.huge, 0)
Spin.AngularVelocity = Vector3.new(0,spinSpeed,0)
sendWebhook("You were donated | Amount: **" .. tostring(Players.LocalPlayer.leaderstats.Raised.Value - RaisedC).. " robux**\nTOTAL: ".. Players.LocalPlayer.leaderstats.Raised.value)
sendWebhook(spinSpeed)
RaisedC = Players.LocalPlayer.leaderstats.Raised.value
end)
spawn(serverHop)
while wait(math.random(5, 7)) do
local msg = begMessages[math.random(1, #begMessages)]
game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg,"All")
end