Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- plr=game:GetService("Players").lafur2
- 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)
- if plrhit then
- print(plrhit.Name)
- plrhit:LoadCharacter()
- 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