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

Player pushed back because of unanchored parts?

Im making a script that spawns balls that will just roll around and only when they are unanchored will the player just be pushed back a ton when they jump.

Here is the function the spawns the part

local function SpawnPart()
			NewPart = hibro:Clone(NewPart)
			NewPart.Parent = script.Parent.SpawnedParts
			NewPart.Anchored = false
			NewPart.Shape = "Ball"
			NewPart.Name = "NewPart"
			
			hibroCount = hibroCount + 1
			script.Parent.SpawnedParts.NewPart.CFrame = CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.p)
			NewPart.Name = hibroCount
			
			print (PlayersService.LocalPlayer:GetMouse().Hit.p)
			print (game.Players.LocalPlayer:GetMouse().Hit.p)
		
			
			hibroVAR.Name = hibroCount
end

4 comments

0

Whats the problem with it?

0

are the objects being parented to the player by any chance?

0

The problem is the player will be pushed back far whenever they jump no matter how many are spawn as long as one is spawned it will happen. The objects are in a folder inside the character

0

well thats the issue then.

1 answer

✓ Accepted answer

This can happen when unanchored objects are parented to the player, this is mostly notable in cars. On the ROBLOX studio website, it is considered to be a bug, and sadly the only real way to fix it is to parent the objects to something other than the player.

Hope this helped. ^w^

11 comments

0

Thanks!

0

make sure to accept my answer >:3

0

i dont know how to

0

How do you accept an answer i am new to this site sorry

0

oh thats fine ;P

0

under my post there should be two buttons, "Accept Answer" and "Report". Click Accept Answer. (:

0

Oh the only thing there is report

0

Well thats odd... Maybe it's a anti-spam thing, idk. As long as I helped you it's fine I guess.

0

Try going into incognito mode. For some reason it's a weird bug that is happening right now.

0

thanks the incognito worked

0

^w^

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