This Rock Module very odd, simply not working on the local sided script?

local RS = game:GetService("ReplicatedStorage")

local TS = game:GetService("TweenService")

local RockModule = {}



function RockModule.ROCKS(Player)
	local Character = Player.Character
	local Humrp = Character.HumanoidRootPart
	
	local cfr = Humrp.CFrame * CFrame.new(0, -5.25, 0)
	
	local angle = 0
	for i=1, 18 do
		local size = math.random(2,8)
		local Rock = RS.Rocks:Clone()
		Rock.CFrame = cfr * CFrame.fromEulerAnglesXYZ(0, math.rad(angle), 0) * CFrame.new(0, 0, -6)
		Rock.Orientation = Vector3.new(math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
		
		delay(2.5, function()
			TS:Create(Rock, TweenInfo.new(.6),{Transparency = 1}):Play()
		end)
		
		angle += 24
	end
end

return RockModule

So, basically this is meant to spawn rocks. It didn’t work multiple times, and when I used it.


-- \\ Player-Related Variables //--

local Player = game.Players.LocalPlayer

local Character = Player.Character or Player.CharacterAdded:Wait()

local HUM = Character:WaitForChild("Humanoid")

local Humrp = Character:WaitForChild("HumanoidRootPart")


-- \\ Velo? // --

local VF, DownVF = Instance.new("VectorForce")

local Att = Instance.new("Attachment")

local ChargeUP = 0

-- \\ Services // --

local UIS = game:GetService("UserInputService")

local RS = game:GetService("ReplicatedStorage")

local JUMP = RS.Jump

local RM = require(RS.RockModule)

local Debris = game:GetService("Debris")

-- \\ Functions // --

UIS.InputBegan:Connect(function(Input, IsTyping)
	if not IsTyping then
		if Input.KeyCode == Enum.KeyCode.G then
			print("Serve injustice")
			RM.ROCKS(Player)
			print("HAHAHA")
			--[[for i=1, 10 do
				task.wait(2)
				ChargeUP += 1
			end]]
			
		end
	end
end)

--[[UIS.InputEnded:Connect(function(Input, IsTyping)
	if Input.KeyCode == Enum.KeyCode.T then
		if ChargeUP > 3 then
			Debris:AddItem(VF, ChargeUP)
			
			
			
		elseif ChargeUP > 6 then 
			Debris:AddItem(VF, ChargeUP)
			
		elseif ChargeUP < 9 then
			Debris:AddItem(VF, ChargeUP)
		end
	end
end)]]

This is the local script, that calls on module.