#Why is this line of code not giving me a Rocket Launcher when I click the part?

1 messages · Page 1 of 1 (latest)

cursive turtle
#

local Rocket = game.ServerStorage.RocketLauncher
local RocketClone = Rocket:Clone()
local Player = script.Parent.Parent.Parent.Parent
if click then RocketClone.Parent = Player.Backpack

end

gloomy portal
#

Are there any errors?

cursive turtle
#

this is the whole script

#

no errors

gloomy portal
#

How are there no errors

cursive turtle
#

what does that mean and how do i fix it

#

idk

gloomy portal
#

Do you know what errors are

cursive turtle
#

yes'

gloomy portal
#

Also where’d you get the script

#

This script would yield an error as click isn’t defined

cursive turtle
#

i got it from a roblox studio forum page from not too long ago

#

and i refined it a tad

gloomy portal
cursive turtle
#

to be more managable

#

i idd

#

i did*

gloomy portal
#

And add a “script.Parent.ClickDetector.Mouse utton1Click:Connect(Function(click))

#

Something like that

gloomy portal
cursive turtle
#

And add a “script.Parent.ClickDetector.MouseButton1Click:Connect(Function(click))*?

cursive turtle
#

ok

gloomy portal
#

You should learn the basics tho

cursive turtle
#

it doesnt work

#

mousebuttonclick also isnt really a thing either

trim kraken
#

create a gui button and activate it through the function

#

also

LEARN THE BASICS!!!

gloomy portal