Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onTouched(hit)
- local Character = [[ Your Character Model ]]
- local RemoveableCaps = {"Cap1", "Cap2", "Cap3"}
- for Index, Child in ipairs(Character:GetChildren()) do
- if table.find(RemoveableCaps, Child.Name) then
- Child:Destroy()
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment