local Tool = script.Parent
local Remote = Tool:WaitForChild("Remote")
local Dropped = false
function getPlayer()
return game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
end
function onActivate()
if Dropped then return end
local root = Tool.Parent:FindFirstChild("HumanoidRootPart")
if root then
local model = game:GetService("InsertService"):LoadAsset(3196154066)
model.Parent = workspace
model:GetChildren()[1].CFrame = root.CFrame * CFrame.new(0, 0, -4)
Dropped = true
game:GetService("Debris"):AddItem(Tool, 0)
end
end
function onRemote(player, func, ...)
if player ~= getPlayer() then return end
if func == "Activate" then
onActivate()
end
end
Remote.OnServerEvent:connect(onRemote)
This code is for a hoverboard, and is used to spawn the hoverboard in. It works with the official ROBLOX tool, but not mine. I changed the model to a retexture, and it does not seem to work. The output says:
"Error Occured, no output from Lua. Stack Begin Script 'Players.Spiralgaia.BackPack.GoldenSnowboard.Server', Line 14 - global onActivate Script 'Players.Spiralgaia.BackPack.GoldenSnowboard.Server', Line 26" I don't get what it means by no output from Lua whatsoever. I put the model onsale, offsale, all of it. I made the model and have HTTP Requests enabled. I do not get it at all.
