my emitter is acting really strange but only on client ( no problem on server ) and i have no idea why :
https://streamable.com/9sa1lw
1 messages · Page 1 of 1 (latest)
my emitter is acting really strange but only on client ( no problem on server ) and i have no idea why :
https://streamable.com/9sa1lw
code?
how do i send proper code again ?
i know there is a way but i forgot
like "" lua or something
** You are now Level 2! **
oh thx
wait
local :
local player = game:GetService("Players").LocalPlayer
local RunService = game:GetService("RunService")
local mouse = player:GetMouse()
local MB1event = game.ReplicatedStorage.Sword1Spells.Spell1.MB1event
local tool = script.Parent.Parent
local MB1debounce = false
local equipped = false
tool.Equipped:Connect(function()
equipped = true
end)
tool.Unequipped:Connect(function()
equipped = false
end)
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local CFrame1 = nil
--RunService.RenderStepped:Connect(function()
-- if mouse and mouse.Hit then
-- local mousePos = mouse.Hit.Position
-- local lookAt = Vector3.new(mousePos.X, hrp.Position.Y, mousePos.Z)
-- CFrame1 = CFrame.new(hrp.Position, lookAt)
-- end
--end)
RunService.RenderStepped:Connect(function()
local cam = workspace.CurrentCamera
if cam then
local camLook = cam.CFrame.LookVector
local flatDirection = Vector3.new(camLook.X, 0, camLook.Z).Unit
local lookAt = hrp.Position + flatDirection
CFrame1 = CFrame.new(hrp.Position, lookAt)
end
end)
UIS.InputBegan:Connect(function(input,gameProssessed)
if gameProssessed then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 and equipped then
if MB1debounce == true then return end
if not CFrame1 then return end
--local playerModule = require(player:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule"))
--local controls = playerModule:GetControls()
--controls:Disable()
MB1debounce = true
MB1event:FireServer(CFrame1, hrp)
wait(1)
MB1debounce = false
--controls:Enable()
end
end) ```
dont use input began on tools
use .Activated
why ?
mobile and console dont have a mouse to click it on
well THAT makes a lot of sens XD
but thats not my problem
currently at least
wait is your problem the direction of the slash vfx?
precisely
the particle is random while being not random