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

Local Script not running even if the player can access?

The script I'm trying to run is activated by another script by cloning it then turning the disabled to false. The first script works.

First Script: print("works")

local PotatoScript = game.StarterPlayer.StarterPlayerScripts.PotatoScript:Clone()
PotatoScript.Parent = game.StarterPlayer.StarterPlayerScripts
PotatoScript.Name = "PotatoScriptClone" .. tostring(plantNumber.Value)
PotatoScript.Disabled = false

The second script is just NOT RUNNING! Its in a place where the player can access but for some reason I even put a print in the first line and still does not run! Here it is:

local Player = game.Players.LocalPlayer
local plantNumber = Player.plantNumber

local PotatoPlant = game.Workspace:WaitForChild("PotatoModel") .. plantNumber.Value


print(PotatoPlant.Name)

Any help is needed! Thanks!

1 answer

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