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

guys i want this script is only a gem that following but i want to change it?!

guys i want this script is only a gem that following but i want to change it when other gem go to me they will disappeard and go to the player's leaderstat so please what should i gonna do?here is my code

local torso = script.Parent.HumanoidRootPart

local center = workspace.Gem
	center.CanCollide = false
local bp = Instance.new("BodyPosition")
    bp.maxForce = Vector3.new(9e+100, 9e+100, 9e+100)
    bp.P = 40000
    bp.Parent = center

while torso.Parent do
    center.BodyPosition.position = torso.Position
    wait()
end

i just want a script that if a gem dectects a player it will magnet and get a force to get into the player's torso then it will disappeard and will add to a player's leaderstat what should i do guys? and i forgot to say my leaderstat name is Gem but please help me!??

1 comment

0

Or if u want to help me just join this if u have discord please https://discord.gg/PwtJgmu or add me in FZSLegend My account so we can talk more

1 answer

I literally posted this same answer on your last question and this is probably the most anyone is going to give you. Please stop spamming the same questions, no one is here to make entire scripts for you!

Before your while loop add this:

center.Touched:connect(function(other)
    if(other == torso) then
           --Add leader board stuff
    end
end)

Find out how to change the leaderboard here : http://wiki.roblox.com/index.php?title=Leaderboard

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