Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Replace OrangeHalo with the halo you want to swap out
- -- Replace "PurpleHalo" and "GreenHalo" with the OTHER halos you have.
- script.Parent.MouseButton1Click:Connect(function()
- local halo = game.ServerStorage.OrangeHalo:Clone()
- if script.Parent.Parent.Parent.Parent.Parent.Character then
- if not script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("GreenHalo") and not script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("PurpleHalo") then
- halo.Parent = script.Parent.Parent.Parent.Parent.Parent.Character
- else
- if script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("GreenHalo") then
- local removehalo = script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("GreenHalo")
- halo.Parent = script.Parent.Parent.Parent.Parent.Parent.Character
- removehalo:Destroy()
- elseif script.Parent.Parent.Parent.Parent.Character:FindFirstChild("PurpleHalo") then -- Keep copy-pasting this for how many halos you have
- local removehalo = script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("PurpleHalo")
- halo.Parent = script.Parent.Parent.Parent.Parent.Parent.Character
- removehalo:Destroy()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement