Insert a number to close a function?
Hi guys, i have this code
01 | local sound = Instance.new( "Sound" , game.Workspace) |
04 | local player = game:GetService( "Players" ).LocalPlayer |
05 | local ShowMessage = player.Backpack:WaitForChild( "ShowMessage" ) |
09 | if hit.Parent ~ = nil then |
10 | local player = game.Players:playerFromCharacter(hit.Parent) |
12 | if player.leaderstats.PhereStage.Value = = script.Parent.Name - 1 then |
13 | local h = hit.Parent:FindFirstChild( "Humanoid" ) |
16 | ShowMessage:Fire( "Complimenti! Hai superato la fase " .. player.leaderstats.PhereStage.Value .. "!" , true ) |
25 | workspace.StartPhere. 1. Touched:connect(dmt) |
I think the problem is at the end
1 | workspace.StartPhere. 1. Touched:connect(dmt) |
I have 0 errors in console, but 1 error inside the script:
1 | Expected '=' when parsing assignment, got '.1.Touched' |
i NEED call this Model "1", i can't change it. How i can fix?