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

Its like I can't access the textbutton because my script isn't working!?

Asked by 4 years ago
Edited 4 years ago




ServerStorage = game:GetService("ServerStorage") GunMenu = script.Parent GunFrame = GunMenu.GunFrame AEK971 = ServerStorage:WaitForChild("AEK-971") AWP = ServerStorage:WaitForChild("AWP") Ak47 = ServerStorage:WaitForChild("Ak47") AssaultRifle = ServerStorage:WaitForChild("AssaultRifle") AssaultRifle2 = ServerStorage:WaitForChild("AssaultRifle2") AutoLazer = ServerStorage:WaitForChild("AutoLazer") Axe = ServerStorage:WaitForChild("Axe") CheapSword = ServerStorage:WaitForChild("CheapSword") ClassicSword = ServerStorage:WaitForChild("ClassicSword") CpGun = ServerStorage:WaitForChild("CpGun") DakansBow = ServerStorage:WaitForChild("DakansBow") Flamethrower = ServerStorage:WaitForChild("Flamethrower") GLOCK17 = ServerStorage:WaitForChild("GLOCK17") GalilAR = ServerStorage:WaitForChild("GalilAR") Gau17 = ServerStorage:WaitForChild("Gau17") Grenade = ServerStorage:WaitForChild("Grenade") Hacate = ServerStorage:WaitForChild("Hacate") HuntingRifle = ServerStorage:WaitForChild("HuntingRifle") Knife = ServerStorage:WaitForChild("Knife") LilUzi = ServerStorage:WaitForChild("LilUzi") M24 = ServerStorage:WaitForChild("M24") M249Second = ServerStorage:WaitForChild("M249Second") Handgun = ServerStorage:WaitForChild("Handgun") M4A1 = ServerStorage:WaitForChild("M4A1") MiniGun2 = ServerStorage:WaitForChild("MiniGun2") MiniGun = ServerStorage:WaitForChild("Minigun") NV4 = ServerStorage:WaitForChild("NV4") MP7Tactical = ServerStorage:WaitForChild("MP7Tactical") PPS41Sec = ServerStorage:WaitForChild("PPS-41Sec") PPSh41 = ServerStorage:WaitForChild("PPSh41") RHFFlashBomb = ServerStorage:WaitForChild("RHFFlashBomb") RemingtonModel11 = ServerStorage:WaitForChild("RemingtonModel11") RocketLauncher = ServerStorage:WaitForChild("RocketLauncher") SmokeGrenade = ServerStorage:WaitForChild("SmokeGrenade") Thompson = ServerStorage:WaitForChild("Thompson") UZI = ServerStorage:WaitForChild("UZI") UselsssKnife = ServerStorage:WaitForChild("UselsssKnife") PgmHCIIButton = GunFrame.PgmHCII AWPButton = GunFrame.AWP Ak47Button = GunFrame.Ak47 AssultRifleButton = GunFrame.AssultRifle AssultRifleButton2 = GunFrame.AssultRifle2 Axe =GunFrame.Axe CheapSwordButton = GunFrame.CheapSword ClassicSwordButton = GunFrame.ClassicSword CpGunButton = GunFrame.CpGun DakansBowButton = GunFrame.DakansBow FlamethrowerButton = GunFrame.Flamethrower GalilARButton = GunFrame.GalilAR Gau17Button = GunFrame.Gau17 Glock17Button = GunFrame.Glock17 GrenadeButton = GunFrame.Grenade HacateButton = GunFrame.Hacate HuntingRifleButton = GunFrame.HuntingRifle KnifeButton = GunFrame.Knife LilUziButton = GunFrame.LilUziButton M24Button = GunFrame.M24 M249SecondButton = GunFrame.M249SecondAd M4A1Button = GunFrame.M4A1 MiniGunButton = GunFrame.Minigun MP7TacticalButton = GunFrame.Mp7Textical Nv4Button = GunFrame.Nv4 PPShSecButton = GunFrame.PPShSec PPSh41Button = GunFrame.PPSh41 RHFFlashBombButton = GunFrame.RHFFlashBomb Remington11Button = GunFrame.Remington11 RocketLauncherButton = GunFrame.RocketLauncher SmokeGrenadeButton = GunFrame.SmokeGrenade ThompsonButton = GunFrame.Thompson UselsssKnifeButton = GunFrame.UselessKnife function AWPMouseButton1Click() AWP.Parent = game.StarterPack end AWPButton.MouseButton1Click:connect(function(AWPMouseButton1Click) print("Hello dhjwk") end)

~~~~~~~~~~~~~~~~~

-- Cause its like it doesn't access the textbutton How do i access the textbutton?

My end goal is that when player click the Amp button the weapon will go into starterpack

0
Please explain the problem clearly, are there errors? If there aren't errors, then what's going wrong and what's your end goal? sheepposu 561 — 4y

Answer this question