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

Appear script only working in Roblox Studio and not in-game? FE problem?

Asked by 6 years ago
Edited 6 years ago

I made this script where when a part is touched, it does some stuff; that's irrelevant though.

Problem is, it only works in Studio. Idk if this is an FE problem, but if someone can help, please do!

Script:

script.Parent.Touched:connect(function()
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne["Exclamation Mark"].PartA.Transparency = 0
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne["Exclamation Mark"].PartB.Transparency = 0
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne.TalkBox.Transparency = .5
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne.ClickDetector.MaxActivationDistance = 100
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne.TalkBox.PointLight.Enabled = true
script.Parent.TouchEnded:connect(function()
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne["Exclamation Mark"].PartA.Transparency = 1
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne["Exclamation Mark"].PartB.Transparency = 1
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne.TalkBox.Transparency = 1
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne.ClickDetector.MaxActivationDistance = 0
    game.Workspace.TalkBoxes.CastleDoors.Noobs.TalkBoxOne.TalkBox.PointLight.Enabled =                                          false
    end)
end)

Try it out in Studio with your own part or something. Good luck helping me :/

(It's not likely an FE problem, as I tried it with FE off.)

0
You reference "game.Workspace.TalkBoxes.CastleDoors.Noobs" a lot. Why not just use a variable? SebbyTheGODKid 198 — 6y
0
didnt seem to work :( CaptaiinNoob 52 — 6y
0
There’s no need to have the TouchEnded function inside the Touched function. You should move it outside to separate it. mattscy 3725 — 6y
0
Test filtering issues via F7 test server. cabbler 1942 — 6y

Answer this question