Hi, new to scripting I was following a tutorial on how to make a bounce pad, I have no clue how to de bug local scripts. I can’t get the bounce pads to work…
The bounce pads are tagged using the tag editor plugin, also there is nothing in the output, nothing is underlined blue in the script which is why I am confused.
I’m not sure what you mean when you are saying “debugging”. Do you mean it triggers several times when the player touches it once?
I don’t have any experience using the tag editor plugin, but I think you could just go through all of the parts with the tag, and if they are touched apply a force to the humanoidrootpart?
ill try with humanoid root part and see,
Humanoid root part did not work.
Are you getting any errors on the Output at all?
0 errors, nothing at all…
That is why I can’t figure it out, thought dev forum might help
Try doing this?
print("This should run")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CollectionService = game:GetService("CollectionService")
local localPlayer = game.Players.LocalPlayer
local boing = ReplicatedStorage:WaitForChild("BOING")
local JUMP_FORCE = 1500
local SPRING_LENGTH = 5
for _, pad in pairs (CollectionService:GetTagged("BouncePad")) do
local bottom = pad:WaitForChild("bottom")
local spring = bottom:WaitForChild("SpringConstraint")
local hitbox = pad:WaitForChild("Hitbox")
local humanoid = otherPart.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid and not pad:GetAttribute("isTouched") and otherPart.Parent.Name == localPlayer.Name then
print("Found someone that didn't touch the bouncy bouncy")
spring.FreeLength = SPRING_LENGTH
spring.FreeLength = 0.1
At first nothing printed. I created a new local scripted and pasted the script it to and this happen
this should ran printed
pad also printed
and I also got this
Infinite yield possible on 'Workspace.Checkpoints:WaitForChild("bottom")
I checked spellings nothing to do with that.
also just checked, the model is the only thing tagged so that’s not the problem
Wait Pad printed out as checkpoints I think I might tagged check points my mistake
Yeah I was gonna say that
Try putting the Pad just in the
I untagged check points it now works, Thanks a lot