wait(1)
---- Services ----
local ReplicatedStorage = game:GetService("ReplicatedStorage")

-- Varibles --
local Remote = ReplicatedStorage:WaitForChild("QuirkActivate")

Remote.OnServerEvent:Connect(function(player)
	local Character = player.Character
	local RootPart = Character:WaitForChild("HumanoidRootPart")
	warn("Quirk Activation Request Recieved")
	if player.leaderstats.Quirk.Value == 1 then
	ReplicatedStorage:WaitForChild("Steam"):Clone().Parent =  RootPart
	print("Event done")
	end
	end)

I made sure the event is fired i get the warn but it wont go further why not

this is in a normal script in serverscriptservice

3 comments

0

you should use proper indentation. It helps make errors easier to spot and the code easier to understand for other people.

0

Well, when the event is fired. Is the quirk value of the player equal to 1?

0

put something like print("test") after the if statement to see if its just that your leaderstats value wasnt 1