Hey there. so i'm trying to make a Fall Guys remake (nobody cares i know) but i want to make a mine that doesn't kill you. Is it possible?
If it is. Tell me the code, where to put it and if it is a local script or not.
Hey there. so i'm trying to make a Fall Guys remake (nobody cares i know) but i want to make a mine that doesn't kill you. Is it possible?
If it is. Tell me the code, where to put it and if it is a local script or not.
Try this one.
local debounce = false
script.Parent.Touched:Connect(function(hit)
if debounce == false then
debounce = true
if hit.Parent:FindFirstChild("RightFoot") or hit.Parent:FindFirstChild("RightLeg") then
local boom = Instance.new("Explosion")
boom.DestroyJointRadiusPercent = 0
boom.BlastPressure = 73500 --Change the 73500 to whatever
boom.Position = script.Parent.Position
boom.Parent = workspace
end
wait(3)
debounce = false
end
end)
This should be a regular server sided script in the part.
script.Parent.Touched:Connect(function(Part)
if Part.Parent:FindFirstChild("Humanoid") then
local explosion = Instance.New("Explosion")
exposion.Position = script.Parent.Position
explosion.DestroyJointRadiusPercent = 0
explosion.Parent = workspace
end
end)
Hope this helps!
It doesn't work
Any errors in output?
well does it have to be a local script?? you did not tell me
A regular server sided script just a Script not a LocalScript
Workspace.Auto Mine.Trigger.Script:3: attempt to call a nil value - Server - Script:3 is the error
Change the ‘N’ in Instance.New to a lowercase ‘n’
it now works, but it launches me very far, how can i fix it?
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
you can change the (if hit.Parent:FindFirstChild("RightFoot") or hit.Parent:FindFirstChild("RightLeg") then) to (if hit.Parent:FindFirstChild("Humanoid") then) if you'd like to.
Yeah it does work but it launches me way too far away
Also please add me in discord so it would be easier to fix: Orey#3816