The error is in line 19

Here is the script. Its a script in ServerScriptService


local Ss = game:GetService("ServerStorage")
local Rs = game:GetService("ReplicatedStorage")

local event = Rs.QuirkX

event.OnServerEvent:Connect(function(player)
	local data = Ss.RemoteData[player.Name]
	local quirk = data.Quirk
	local char = player.Character
	
	local mName = quirk.Value .. "MoveX"
	
	print(mName)
	
	local Model = Rs.Name
	
	if char.Humanoid.BodyHeightScale.Value > 1 then
	else
		local Atk = Model:Clone()
		
		Atk.Parent = workspace
		
		Atk.Position = char.HumanoidRootPart.Postion
	end
	
end)

2 comments

0

Modelis defined as the name of game:GetService("ReplicatedStorage")

0

OOF, i realized it should be Rs.mName. Thank You!