Fix this code pls
01 | print ( "Shop Script Loaded" ) |
02 |
03 | local Saber = [ "Kylo Ren's Crossguard Lightsaber" ] |
04 | Door = script.Parent |
05 | local debounce = false |
06 |
07 | function getPlayer(humanoid) |
08 | local players = game.Players:children() |
09 | for i = 1 , #players do |
10 | if players [ i ] .Character.Humanoid = = humanoid then return players [ i ] end |
11 | end |
12 | return nil |
13 | end |
14 | function onTouched(hit) |
15 | if debounce = = false then |
try setting this:
1 | game.Lighting.Saber:clone().Parent = player.Backpack |
to this:
1 | game.Lighting [ Saber ] :clone().Parent = player.Backpack |