#Ball converter not working

1 messages · Page 1 of 1 (latest)

elfin viperBOT
#

studio** You are now Level 1! **studio

tacit wind
#

So I wouldnt do this locally

#

Is script 1 a localscript?

#

Also event.Event is not a trigger

#

Its event.OnClientEvent

#

Or .OnServerEvent

tidal yew
#

here ima type the first script
local Players = game:GetService("Players")
local part = script.Parent
local debounce = false
local event = game.ReplicatedStorage.MakePlayerBallSignal

part.Touched:Connect(function(otherpart)
local player = Players:GetPlayerFromCharacter(otherpart.Parent)
if player then
if debounce then return end
debounce = true
local Playermodel = otherpart.Parent
event:FireServer(Playermodel)
wait(1)
debounce = false
end
end)

#

and second

local players = game:GetService("Players")
local storage = game:GetService("ReplicatedStorage")
local event = game.ReplicatedStorage.MakePlayerBallSignal
local player = game.Players.LocalPlayer
local Playerball = game.ReplicatedStorage.Playerball:Clone()

event.OnClientEventEvent:Connect(function(PlayerModel)
local Char = player.Character or player.CharacterAdded:Wait()
local Playerball = game.ServerStorage.ball:Clone()
local Weld = Instance.new("WeldConstraint")
Weld.Parent = Playerball
Weld.Part0 = Playerball
Weld.Part1 = Char.HumanoidRootPart
Ball.Position = Char.PrimaryPart.Position + Vector3.new(0, 0, 0)
Ball.Parent = Char

end)

tacit wind
#

The do event.FireClient(player, Playermodel)

#

I mean there is no reason to pass Playermodel as the 2nd argument, beacuse you can just get the same thing by foing Player.Character

tidal yew
#

you mean the "event.OnClientEventEvent:Connect(function(PlayerModel)" ?

#

or "event:FireServer()"?

tidal yew
#

Alright it fixed

tacit wind
#

bro said yes to himself

tacit wind
tacit wind