My script dont work because it attempt to index nil with Data? here script
local debounce = false
local summon = false
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(Input,IsTyping)
if IsTyping then return end
if Input.KeyCode == Enum.KeyCode.Q and Player.Data.HasStand.Value == true then
if summon == false then
summon = true
print("summoned the stand")
game.ReplicatedStorage.Jojo:WaitForChild("SummonStand"):FireServer()
script.Parent:WaitForChild("Equip").Value = true
elseif summon == true then
print("destroyed the stand")
summon = false
game.ReplicatedStorage.Jojo:WaitForChild("DestroyStand"):FireServer()
script.Parent:WaitForChild("Equip").Value = true
end
end
end)
if Input.KeyCode == Enum.KeyCode.Q and Player.Data.HasStand.Value == true then
that is the line with the error i think

7 comments
Do you ever define 'Player' ?
Yes
but it still dont work and i try with 'Players'
Can you edit your question with the code where Player is defined? Your error means
Playeris nil, so something must be up with that part.ok
I still don't see it defined anywhere. When I say 'define' it means where you initiate the variable, somewhere should say something like: local Player = game.Players.LocalPlayer
o