So this script is a landmine script. It would launch a player's body up into the air. It works in test mode, but doesn't work in server mode. Error is at line 27.
math.randomseed(tick(1))
touch = true
canRemove = {"RightUpperLeg","RightUpperArm","LeftUpperLeg","LeftUpperArm"}
function onTouch(PART)
if touch then
touch = false
--Variables--
local char = PART.Parent
local humanoid = char:FindFirstChild("Humanoid")
--Explosion effect--
local boom = Instance.new("Explosion", script.Parent)
boom.Position = script.Parent.Position
boom.BlastRadius = 0
boom.BlastPressure = 0
local boomSound = script.Parent:WaitForChild("Boom")
boomSound:Play()
--Find, and kill player--
if humanoid ~= nil then
humanoid.Health = 0
end
--Launches player's body into air--
local torso = char:FindFirstChild("UpperTorso")
if torso then
torso.Velocity = Vector3.new(math.random(-50,50), 250, math.random(-50,50))
torso.RotVelocity = Vector3.new(math.random(-50,50), math.random(-50,50), math.random(-50,50))
else
PART.Velocity = Vector3.new(math.random(-50,50), 250, math.random(-50,50))
PART.RotVelocity = Vector3.new(math.random(-50,50), math.random(-50,50), math.random(-50,50))
end
if math.random() < 0.60 then
for i = 1, 10 do
wait()
local children = char:GetChildren()
local removeJoint = children[math.random(#children)]
for _,name in pairs(canRemove) do
if removeJoint.Name:match(name) then
if removeJoint.Name == name then
removeJoint = char:FindFirstChild("RagdollConstraint"..name)
end
if removeJoint then
removeJoint:Destroy()
end
break
end
end
end
else
print("No limbs blown off.")
end
wait(1)
touch = true
end
end
script.Parent.Touched:connect(onTouch)

4 comments
Is this a LocalScript or a normal Server Script?
Normal script inside a landmine part.
I found that this is the only way to contact you MrHerkes; and I wanted to let you know that Ragdoll Engine does not ruin your mobile battery. I have played Ragdoll Engine in my iPhone 7 Plus since you created the game, and my battery has not been affected in any shape or form. I have both gamepasses, and enjoyed the game a lot. I think you’ve made an awesome game. Please bring back mobile. :)
I would also like the say that it’s the responsibility of the mobile owner that they look after their battery. If their battery sucks, it’s not your fault. Most of my Roblox friends play your game on mobile, and enjoyed it thoroughly. I am saying all of this with the utmost respect, but bringing back the mobile version would bring back a large number of people to the game. Have a good day.