Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nam = game.Players.LocalPlayer.Name
- game:GetService('RunService').Stepped:connect(function()
- for a, b in pairs(game.Workspace:GetChildren()) do
- if b.Name == nam then
- for i, v in pairs(game.Workspace[nam]:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- end
- end
- end)
- Workspace[nam].Head.Changed:connect(function()
- for a, b in pairs(game.Workspace:GetChildren()) do
- if b.Name == nam then
- for i, v in pairs(game.Workspace[nam]:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement