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

Script Works when testing but not online when published?

Asked by 9 years ago

I have a bow script that works when i test play it in studio, but when i publish the game and play it online the GUI doesn't show up and the bow doesn't work. Why is that? Thanks for any help and suggestions!

001local TOOL = script.Parent
002 
003local DAMAGE = 30
004local RANGE = 50
005local REST_TIME = 0.5
006local CRIT_MULT = 2
007 
008local DEBOUNCE = true
009 
010local AMMO_TYPE = "ARROW"
011local AMMO_BOX = TOOL.Ammo
012local AMMO_GUI = TOOL.ScreenGui
013local AMMO_NUM_LABEL = AMMO_GUI.Frame.TotalAmmoLabel
014local AMMO_TYPE_LABEL = AMMO_GUI.Frame.AmmoTypeLabel
015local CURRENT_SHOT = nil
View all 278 lines...
0
i bet taslem didnt even read all 278 lines koolkid8099 705 — 9y
0
haha ^ but thanks taslem, so far its looking like that was the problem, most of my scripts were scripts not localscripts, and that also fixed the testing mode in studio so it isn't slow anymore. Gwolflover 80 — 9y

1 answer

Log in to vote
0
Answered by 6 years ago

Im not an expert on stuff like that, but lowercase C in script.Parent.Activated:connect() and other parts like that is deprecated and should be a capital letter.

Ad

Answer this question