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

Can't figure out the problem with this script? (Yes I put in CFrame values)

So here is a script which basically says "If plr is in this group() CFrame/Vector3 to () I have the script in my ServerScriptStorage but I still can't figure out why it won't work. (I am new to scripting)


local plrs = game:GetService("Players");

plrs.PlayerAdded:Connect(function(plr)

    if plr:IsInGroup(3846293) then

        local character = plr.Character or plr.CharacterAdded:Wait();

        local torso = character:WaitForChild("HumanoidRootPart") -- Better to use the HumanoidRootPart than the torso in my opinion.

        torso.CFrame = CFrame.new() -- The CFrame is set here. Make sure to add the values for the CFrame.

    end

end) -- (Credits to KingLoneCat for the Script)

2 comments

0

You didn’t put the CFrame values in line 11. Put the values in the ().

0

I did put it in

1 answer

I did put the CFrame Values in, I just didn't show it in the code block (It was my mistake i'm sorry)

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