Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trying to make a gear giver for if a player has a gamepass but it doesn't work????[SOLVED]

Gamepass=game:GetService('GamePassService')
Id=633260926
game.Players.PlayerAdded:connect(function(hit)
	print("function success")
	if Gamepass:PlayerHasPass(hit, Id) then print("Attempting to give segway")local a=game.Lighting.HandlessSegway:Clone()
		a.Parent=hit.StarterGear
	end
end)

No clue why its not working, it says Lighting is not a valid member of Workspace in developer logs, not sure if its because of this script or another script, why is this script not giving this hoverboard?

2 comments

0

Does it print Attempting to give segway? Be sure to isolate the script so you can tell if there error is from there.

0

Attempting to isolate right now. @Shawnyg

1 answer

This problem has been solved, thanks to @Shawnyg for helping.

1 comment

0

Glad I could help.

This discussion is preserved as it was. New answers, comments, and votes are closed.