SHOW:
|
|
- or go back to the newest paste.
1 | local player = game.Players.LocalPlayer | |
2 | local backpack = player.Backpack | |
3 | local RunService = game:GetService('RunService') | |
4 | ||
5 | function changeEvent() | |
6 | backpack.Power.E.Parent = game.ReplicatedStorage | |
7 | backpack.Health.Eat.Parent = game.ReplicatedStorage | |
8 | backpack.Speed.TrainEvent.Parent = game.ReplicatedStorage | |
9 | end | |
10 | ||
11 | function unEquipTools() | |
12 | for i,v in pairs(player.Character:GetChildren()) do | |
13 | if v.ClassName == "Tool" then | |
14 | v.Parent = backpack | |
15 | end | |
16 | end | |
17 | end | |
18 | ||
19 | unEquipTools() | |
20 | changeEvent() | |
21 | RunService.Heartbeat:connect(function() | |
22 | game.ReplicatedStorage.E:FireServer() | |
23 | game.ReplicatedStorage.Eat:FireServer() | |
24 | game.ReplicatedStorage.TrainEvent:FireServer() | |
25 | end) |