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

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

Asked by 6 years ago

So here is a script which basically says "If plr is in this group(<ID>) CFrame/Vector3 to (<Values>) 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)
0
You didn’t put the CFrame values in line 11. Put the values in the (). User#20279 0 — 6y
0
I did put it in Jared_Comm 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question