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

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

Asked by 7 years ago
Edited 7 years ago

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!??

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 FZSLegend 2 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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

Ad

Answer this question