I tried To instance a particle to my script
Example: ~~~~~~~~~~~~~~~~~ local Player = game:GetService("Players").LocalPlayer local rp = game:GetService("ReplicatedStorage") local Kamui = rp:WaitForChild("Kamui")
Kamui.OnServerEvent:Connect(function(Player,Mouse) local Character = Player.Character
local distance = 10 local partDistance = (Mouse.Position - Character:WaitForChild("HumanoidRootPart").Position).magnitude if partDistance <= distance then if Mouse.Parent:FindFirstChild("Humanoid") then local HumanoidRP = Mouse.Parent:WaitForChild("HumanoidRootPart") local Humanoid = Mouse.Parent:WaitForChild("Humanoid") if Humanoid then local KamuiDimension = workspace:WaitForChild("Kamui Dimension") local tp1 = KamuiDimension:WaitForChild("tp1") --//Spawn Eye particles here\\-- -- Code here wait(2) HumanoidRP.CFrame = tp1.CFrame * CFrame.new(0,8,0) end else return end end
where it says "Spawn Eye particles here" it means as in the particle for the kamui spinning thing i already have that but i dont know how to instance it and make a code for it. and my other script for incase ~~~~~~~~~~~~~~~~~ local Player = game:GetService("Players").LocalPlayer local rp = game:GetService("ReplicatedStorage") local Kamui = rp:WaitForChild("Kamui") local UserInput = game:GetService("UserInputService") local Mouse = Player:GetMouse() local Debounce = false local coolDown = 5 UserInput.InputBegan:Connect(function(Input,IsTyping) if IsTyping then return elseif Input.KeyCode == Enum.KeyCode.E and Debounce == false then Debounce = true Kamui:FireServer(Mouse.Target) end end) Kamui.OnClientEvent:Connect(function() wait(coolDown) Debounce = false end)