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

TextButtons don't trigger scripts in Game but in the Studio?

Asked by 6 years ago

For some reason, my TextButtons won't work.

Here is script:

torso = script.Parent.Parent.Parent.Parent.Character.Torso Hoboassassin489/OutrageousEpicHobo

function onClicked(GUI)
      torso.CFrame = CFrame.new(Vector3.new( 168.037, 41.057, -267 ))
end

script.Parent.MouseButton1Click:connect(onClicked)

Why won't it work? (Btw i'm using a normal script, not a LocalScript plus that won't work either...)

The Button is active!

0
And yes, this is a community model fluffyXY52 0 — 6y
0
actually get rid of the Hoboassassin489/OutrageousEpicHobo fluffyXY52 0 — 6y
0
You dont need Vector3.New inside CFrame.new just the number should be enough. Timmerman73 85 — 6y

Answer this question