local g = game
local rs = g:GetService("ReplicatedStorage")
local ss = g:GetService("ServerStorage")
local RaidFunction = rs:WaitForChild("StartRaid")
local SpawnEvent = rs:WaitForChild("SpawnRobot")
SpawnEvent.OnServerEvent:Connect(function(player)
local c = ss:FindFirstChild("Insane Robot"):Clone()
c.Parent = workspace
c.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
end
This is my code, and it keeps running in this error
local g = game
local rs = g:GetService("ReplicatedStorage")
local ss = g:GetService("ServerStorage")
local RaidFunction = rs:WaitForChild("StartRaid")
local SpawnEvent = rs:WaitForChild("SpawnRobot")
this piece of code alone tells me "Excepted , got ‘end’
EDIT:
Does this mean the character is somewhere here?
EDIT: No, it’s not the issue, even empty script tells it.