Ok, so basically I’m creating a magic fire system, and basically the size doesn’t update to the mouse. Which I need it to, basically.
User presses F
User can drag the fire, but it stays in the same like position for a few seconds before disapearing.
Video demo: ^
That’s what I want it to do.
SCRIPTS:
module:
local module = {}
local timeUse = 8
function module:AdvancedPyro(Mouse)
local UID = game:GetService("UserInputService")
local RunService =game:GetService("RunService")
local sizing = UID:GetMouseLocation()
local cloned = script.Part:Clone()
cloned.Parent = game.Workspace
game:GetService("RunService").RenderStepped:Connect(function()
cloned.Size = Vector3.new(9.101, 0.101, 0.101)
cloned.CFrame = CFrame.new(Mouse.Hit.p)
end)
wait(8)
cloned:Destroy()
end
return module
client:
local player = game.Players.LocalPlayer
local UID = game:GetService("UserInputService")
local mouse = player:GetMouse()
local db = false
UID.InputBegan:Connect(function(key,IsTyping)
if not IsTyping then
if key.KeyCode == Enum.KeyCode.F then
if db == false then
db = true
local module = require(game.ReplicatedStorage.AdvancedPyrokineses)
module:AdvancedPyro(mouse)
wait(8)
db = false
end
end
end
end)