Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm making an HD Admin command that gives a person a bubble around themselves, it's not working?

Asked by 4 years ago
Edited 4 years ago

This is the script in ClientCommands:

    ["bubble"] = {
        Function = function(speaker, args)
            local plr = args[1]
            local torso = plr.Torso
            if torso then
                local part = Instance.new("Part", torso)
                part.Shape = Enum.PartType.Ball
                part.Transparency = 0
                part.CanCollide = true
                part.Size = Vector3.new(10.14,10.14,10.14)
                part.Parent = torso.Position
        end
        end;
        };

0
As following up to my you aren't setting a position, you need to disable collison on the bubble inless its holo. You could unanchor it and then weld to the torso, that would work. Also you need to use whatever is HD admin's getplayer function in order to not have to type full usernames (inless HD admin doesn't do that) moo1210 587 — 4y
0
Wait, you also are going to a torso on a string. moo1210 587 — 4y

2 answers

Log in to vote
0
Answered by
moo1210 587 Moderation Voter
4 years ago

You aren't setting a position for this bubble.

0
How would I set it to the center of the torso? OwOShiba 78 — 4y
0
part.CanCollide = true? why? Vlym 19 — 4y
Ad
Log in to vote
0
Answered by
QkThen 0
4 years ago

Put the bubble position on torso's position

part.Position = torso.Position

0
This still doesn't work. OwOShiba 78 — 4y

Answer this question