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

This script only work in solo mode, but in online mode doenst work, can someone help?

Asked by 6 years ago

I am making a first person game and this script works on solo mode but doens't work in online mode. here is the script if you wan't to help (srry for bad english)

local plr = game.Players.LocalPlayer local char = plr.CharacterAdded:wait() local hum = char:WaitForChild("Humanoid") local rootpart,head = char:WaitForChild("HumanoidRootPart"),char:WaitForChild("Head") game:GetService("RunService"):BindToRenderStep("CameraOffset",Enum.RenderPriority.Character.Value+1,function() hum.CameraOffset = (rootpart.CFrame+Vector3.new(0,1.5,0)):pointToObjectSpace(head.CFrame.p) end)

0
Is this a localScript or serverScript? theCJarmy7 1293 — 6y
0
LocalScript and it is on startergui andremalaquias 2 — 6y
0
cmon people i need help andremalaquias 2 — 6y
0
try changing local char to "workspace:WaitForChild(plr.Name)" ax_gold 360 — 6y
View all comments (2 more)
0
din't worked ax_gold andremalaquias 2 — 6y
0
Please implement your code correctly so we can read it. DeceptiveCaster 3761 — 6y

Answer this question