SHOW:
|
|
- or go back to the newest paste.
1 | wait(2) | |
2 | - | plr=owner |
2 | + | plr=game:GetService("Players").plytalent |
3 | game:GetService("RunService").Heartbeat:Connect(function() | |
4 | plrs = game:GetService("Players") | |
5 | Character=plr.Character | |
6 | for _,v in pairs(Character:GetChildren())do | |
7 | if v:IsA("Part")then | |
8 | if not workspace:FindFirstChild(v.Name.." shield") then | |
9 | shield=Instance.new("Part",workspace) | |
10 | weld=Instance.new("Weld",shield) | |
11 | weld.Part1 = shield | |
12 | weld.Part0=v | |
13 | shield.CanCollide=false | |
14 | shield.Transparency =0.95 | |
15 | shield.Size=v.Size+Vector3.new(0.1,0.1,0.1) | |
16 | shield.Name = v.Name.." shield" | |
17 | shield.Touched:Connect(function(hit) | |
18 | if hit.Name ~= "Base" and hit.Name ~="Baseplate" then | |
19 | print(hit.Name) | |
20 | - | plrhit=plrs:GetPlayerFromCharacter(hit.Parent.Parent.Parent) or plrs:GetPlayerFromCharacter(hit.Parent.Parent) |
20 | + | plrhit=plrs:GetPlayerFromCharacter(hit.Parent) |
21 | if plrhit then | |
22 | print(plrhit.Name) | |
23 | - | for _,t in pairs(plrhit.PlayerGui:GetChildren())do |
23 | + | plrhit:LoadCharacter() |
24 | - | if t:IsA("Script") and t.Name ~= "Replicated" and t.Name ~="Health" then |
24 | + | |
25 | - | t.Disabled=true |
25 | + | |
26 | end) | |
27 | end | |
28 | - | for _,t in pairs(plrhit.Character:GetChildren())do |
28 | + | |
29 | - | if t:IsA("Script")then |
29 | + | |
30 | - | if t.Name~="ClientManager"and t.Name~="SBPlayerList" then |
30 | + | |
31 | - | t.Disabled=true |
31 | + | |
32 | end | |
33 | end) |