Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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;
		};
	

2 comments

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)

0

Wait, you also are going to a torso on a string.

2 answers

You aren't setting a position for this bubble.

2 comments

0

How would I set it to the center of the torso?

0

part.CanCollide = true? why?

Put the bubble position on torso's position

part.Position = torso.Position

1 comment

0

This still doesn't work.

This discussion is preserved as it was. New answers, comments, and votes are closed.