Jump effect script wont work

Im trying to make a jump system where some effects come off like most high quality games,
But when i jump it doesn’t appear and i dont get why
image



script 1: (Local Script)

local plr = game.Players.LocalPlayer


local char = plr.Character or plr.CharacterAdded:Wait()

local humanoid = char:WaitForChild("Humanoid")


local hasJumped = false



humanoid.StateChanged:Connect(function(oldState, newState)


	if newState == Enum.HumanoidStateType.Jumping then


		if hasJumped then return end
		
		script.RemoteEvent:FireServer()

		hasJumped = true



	elseif newState == Enum.HumanoidStateType.Landed then   


		hasJumped = false
	end
end)

Script 2: Script

script.Parent.RemoteEvent.OnServerEvent:Connect(function()
	local jumpEffect = game.ServerStorage.JumpEffect:Clone()
	jumpEffect.Transparency = 1
	jumpEffect.Parent = workspace
	game.Debris:AddItem(jumpEffect,0.3)
	local weld = Instance.new("Weld",jumpEffect)
	weld.Part0 = script.Parent.Parent.HumanoidRootPart
	weld.Part1 = jumpEffect
	weld.C0 = CFrame.new(0,-3.6,0) * CFrame.fromEulerAnglesXYZ(0,0,1.5)
	jumpEffect.ParticleEmitter:Emit(45)
end)
2 Likes

Can you tell us if there’s any errors outputted in the output tab?

17:14:42.321 Transparency is not a valid member of Folder “JumpEffect” - Server - Script:3

Few issues I’ve discovered:

  • Why are you parenting both the server script and the remote event under the local script? That is not how it works. Server scripts in this instance should be placed inside the ServerScriptService container while the RemoteEvent should be placed under the ReplicatedStorage container.

That error indicates it’s either Transparency is not a property or a valid children of the “JumpEffect” folder.

Can you show a Screenshot of the JumpEffect folder.

A folder doesn’t have the property ‘Transparency’.

1 Like

It worked but it teleports me to the effect

I fixed it already but it teleports me to the part not it teleporting to me

Reparent the server scripts and remote events, and fix any scripting errors in your server script code.

The script works already, the problem is the script itself not working how i want it

Are you getting any errors in the output?

Again, that is not how you are supposed to work with it in this case. Reparent the server scripts and remote events, and fix any scripting errors in your server script code. You will be able to code better in that way.

1 Like

No I don’t just some false errors from other scripts

Those are literally called errors. Please show us the errors.


:skull:

Did you reparent the server scripts and remote events to their respective containers now?

I did but i have to recode the script because it isn’t “Script.Parent” anymore

1 Like

So what issues are you encountering now? Is it you getting teleported to the effect itself?

It just doesn’t work anymore


1 Like

That would be called a warning, and it’s not breaking anything in this case.