Howdy!
It looks to me that your problem is originating from the server script. I am new to scripting, so this may or may not work for you.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemoteEvent = ReplicatedStorage:WaitForChild("forcebrr")
local function forcebrrRemoteEvent(Player)
local part = game.ServerStorage.ForceField:Clone()
part.Parent = workspace
part.Position = game.Players[Player.Name].Character.Torso.Position
part.CanCollide = false
part.Anchored = true
part.Size = Vector3.new(5, 5, 5)
part.Transparency = 0.05
wait(0.005)
part.Size = Vector3.new(7.5, 7.5, 7.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(10, 10, 10)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(12.5, 12.5, 12.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(15, 15, 15)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(17, 17, 17)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(19, 19, 19)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(21, 21, 21)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(23, 23, 23)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(25, 25, 25)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(26.5, 26.5, 26.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(28, 28, 28)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(29.5, 29.5, 29.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(31, 31, 31)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(32.5, 32.5, 32.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(33.5, 33.5, 33.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(34.5, 34.5, 34.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(35.5, 35.5, 35.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(36, 36, 36)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part.Size = Vector3.new(36.5, 36.5, 36.5)
part.Transparency = part.Transparency + 0.05
wait(0.005)
part:Destroy()
end
RemoteEvent.OnServerEvent:Connect(forcebrrRemoteEvent)
And for the local script
local player = game.Players.LocalPlayer
local character = script.Parent
local remoteEvent = game.ReplicatedStorage:WaitForChild("forcebrr")
local UserInputService = game:GetService("UserInputService")
local requiredKey = Enum.KeyCode.R
local rStorage = game.ReplicatedStorage
local rep = game:GetService("ReplicatedStorage")
UserInputService.InputBegan:Connect(function(key, gameProcessed)
if key.KeyCode == requiredKey then
remoteEvent:FireServer(player)
end
end)
I apologize if this didn't work for you, as I didn't have any time to test it.
4 comments
I suggest that you learn how to use for loops as they will shorten the amount of code you will need to write.
While I do know how to use loops, I have a technique to make it smoother, which requires longer code.
The code you have written now wont make it any smoother than using a for loop pal
I can lin kyou the game.