game:GetService("ReplicatedStorage").Arrow.OnServerEvent:Connect(function(player)
if player.Data.Stand.Value == 9 or player.Data.Stand.Value == 91 or player.Data.Stand.Value == 92 or player.Data.Stand.Value == 93 or player.Data.Stand.Value == 94 or player.Data.Stand.Value == 95 or player.Data.Stand.Value == 10006 then
local char = player.Character
if not char:FindFirstChild"Artist Hat" then
return
end
local human = char["Humanoid"]
local location = player.Character.HumanoidRootPart.CFrame
player:LoadCharacter()
human.WalkSpeed = 16
human.JumpPower = 50
player.Character.HumanoidRootPart.CFrame = location
local rando = math.random(1, 5)
if rando == 1 then
local randooooo = math.random(0, 100)
if randooooo >= 2 then
player.Data.Stand.Value = 94
end
elseif rando == 2 then
local randoo = math.random(0, 100)
if randoo >= 2 then
player.Data.Stand.Value = 93
elseif randoo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 3 then
local randooo = math.random (0, 100)
if randooo >= 2 then
player.Data.Stand.Value = 93
elseif randooo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
if rand > 10 and rand then
local rando = math.random(1, 5)
if rando == 1 then
player.Data.Stand.Value = 95
elseif rando == 2 then
player.Data.Stand.Value = 94
elseif rando == 3 then
local randoooo = math.random (0, 100)
if randoooo >= 2 then
player.Data.Stand.Value = 93
elseif randoooo <= 1 then
player.Data.Stand.Value = 95
end
player.Data.Stand.Value = 93
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
end
end)
COMMUNITY QUESTION
ArtistHat:60: Expected ')' (to close '(' at line 1), got 'end' I dont understand?!
1 answer
One end too much.
game:GetService("ReplicatedStorage").Arrow.OnServerEvent:Connect(function(player)
if player.Data.Stand.Value == 9 or player.Data.Stand.Value == 91 or player.Data.Stand.Value == 92 or player.Data.Stand.Value == 93 or player.Data.Stand.Value == 94 or player.Data.Stand.Value == 95 or player.Data.Stand.Value == 10006 then
local char = player.Character
if not char:FindFirstChild"Artist Hat" then
return
end
local human = char["Humanoid"]
local location = player.Character.HumanoidRootPart.CFrame
player:LoadCharacter()
human.WalkSpeed = 16
human.JumpPower = 50
player.Character.HumanoidRootPart.CFrame = location
local rando = math.random(1, 5)
if rando == 1 then
local randooooo = math.random(0, 100)
if randooooo >= 2 then
player.Data.Stand.Value = 94
end
elseif rando == 2 then
local randoo = math.random(0, 100)
if randoo >= 2 then
player.Data.Stand.Value = 93
elseif randoo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 3 then
local randooo = math.random (0, 100)
if randooo >= 2 then
player.Data.Stand.Value = 93
elseif randooo <= 1 then
player.Data.Stand.Value = 95
end
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
if rand > 10 and rand then
local rando = math.random(1, 5)
if rando == 1 then
player.Data.Stand.Value = 95
elseif rando == 2 then
player.Data.Stand.Value = 94
elseif rando == 3 then
local randoooo = math.random (0, 100)
if randoooo >= 2 then
player.Data.Stand.Value = 93
elseif randoooo <= 1 then
player.Data.Stand.Value = 95
end
player.Data.Stand.Value = 93
elseif rando == 4 then
player.Data.Stand.Value = 92
elseif rando == 5 then
player.Data.Stand.Value = 91
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
It doesn’t work, and doesn’t give any errors.
Hello?