so i typed a simple function. the function i was using the function onclick() , but it appeared at the end function that instead of end it said "endend" anyone know why? Here's the script as it follows
function onClick() -- start function
endend
local Num1 = math.random(1,9)
local Num2 = math.random(1,9)
local Num3 = math.random(1,9)
local Num4 = math.random(1,9)
local Num5 = math.random(1,9)
local number = Num1 .. Num2 .. Num3 .. Num4 .. Num5
Model.Name = number
endend
local Head = script.Parent -- our part named Head
local Model = script.Parent -- the model containing the part
endend

1 comment
endend in your script isn't a thing..................................................... head isn't even used num1..num2 will give errors because the dots are unnecessary the name can't be 5 numbers at once, their is no way this script will ever work or do anything, goodluck and have a good time...