Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- plr=owner
- game:GetService("RunService").Heartbeat:Connect(function()
- plrs = game:GetService("Players")
- Character=plr.Character
- for _,v in pairs(Character:GetChildren())do
- if v:IsA("Part")then
- if not workspace:FindFirstChild(v.Name.." shield") then
- shield=Instance.new("Part",workspace)
- weld=Instance.new("Weld",shield)
- weld.Part1 = shield
- weld.Part0=v
- shield.CanCollide=false
- shield.Transparency =0.95
- shield.Size=v.Size+Vector3.new(0.1,0.1,0.1)
- shield.Name = v.Name.." shield"
- shield.Touched:Connect(function(hit)
- if hit.Name ~= "Base" and hit.Name ~="Baseplate" then
- print(hit.Name)
- plrhit=plrs:GetPlayerFromCharacter(hit.Parent.Parent.Parent) or plrs:GetPlayerFromCharacter(hit.Parent.Parent)
- if plrhit then
- print(plrhit.Name)
- for _,t in pairs(plrhit.PlayerGui:GetChildren())do
- if t:IsA("Script") and t.Name ~= "Replicated" and t.Name ~="Health" then
- t.Disabled=true
- end
- end
- for _,t in pairs(plrhit.Character:GetChildren())do
- if t:IsA("Script")then
- if t.Name~="ClientManager"and t.Name~="SBPlayerList" then
- t.Disabled=true
- end
- end
- end
- end
- end
- end)
- end
- if v:FindFirstChildOfClass("SpecialMesh") then
- v:FindFirstChildOfClass("SpecialMesh"):Clone().Parent=shield
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement