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

Why won't this script work?

Asked by 9 years ago

Hi this script was only working in solo mode can you help please? At the end when I try to clone it into the player it only works in solo mode. And yes it's in a local script.

plr = game.Players.LocalPlayer
script.Parent.TextWrapped = true
plr.CameraMinZoomDistance = 1
plr.CameraMaxZoomDistance = 1
wait(5)
script.Parent.Text = "Hello " ..plr.Name.. ", and welcome to Conscious!"
wait(3)
script.Parent.Text = "You are probably wondering who I am..."
wait(3)
script.Parent.Text = "I am your Conscious telling you what to do and when to do it."
wait(3)
script.Parent.Text = "I am you."
wait(3)
script.Parent.Text = ""
plr.CameraMaxZoomDistance = 10
plr.CameraMinZoomDistance = 10
local a = game.ServerStorage.Flashlight:Clone()
a.Parent = plr.Backpack
local b = game.ServerStorage.Flashlight:Clone()
b.Parent = plr.StartPack
wait(2)
script.Parent.Text = "To be continued..."

1 answer

Log in to vote
1
Answered by
Spooce 78
9 years ago

LocalScripts cannot access the ServerStorage.

Ad

Answer this question